Skip to main content

Using Flow in React Native project

· One min read

Flow is used for static type checking in javascript. Flow works best when installed per-project with explicit versioning rather than globally.

Steps:

  1. Add a devDependency on the flow-bin npm package: yarn add –dev flow-bin

  2. Run below command yarn run flow init

  3. To run Flow yarn run flow

  4. Add ‘.flowconfig’ and add ./node_modules/.\*  under [ignore]