How to add Flow? or another Type Checker

#1

Hello, I would like to integrate Flow into my Expo app. I saw this: https://github.com/react-community/create-react-native-app/issues/564 that shows that Flow was removed (I’m not sure why, sorry I’m new to this if it’s obvious).

As my app is getting more complex, I’m finding some errors I run into could have easier been avoided with a type checker. Does Expo have a flag somewhere where I can enable one? Almost every tutorial I see about how to integrate Flow seems outdated and I’m scared to mess up my project. Has anyone here recently implemented Flow into their Expo app that could provide simple instructions? I’m not opposed to using something else than Flow, it just seems Flow would be easier to integrate than rewriting everything into, for example: TypeScript form. Surely Expo knows people would want something like this and have some option.

Anyone :sob:

0 Likes

#2

hi @dogofpavlov, afaik you can use flow (Setting up Flow), but its tricky because of errors from upstream repos:


https://expo.canny.io/feature-requests/p/built-in-support-for-flow

0 Likes

#3

@quinlanj Thanks for the reply!

Hmm, this seems a lot more advanced than I think I’m capable, I struggle with most things that are working as is (as far as setting up projects go, it’s by far the hardest part of JS development, or at least for me). I was hoping there was just some flag I’d need to enable or something. Do you use Flow in your Expo projects? or any other Type checker? or are most people just not using a type checker?

Thanks for your time, I really appreciate it. Expo has been wonderful so far I’m just trying to understand it better.

0 Likes

#4

I use Typescript !

0 Likes

closed #5

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

0 Likes