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:
-
Add a devDependency on the flow-bin npm package:
yarn add –dev flow-bin
-
Run below command
yarn run flow init
-
To run Flow
yarn run flow
-
Add ‘.flowconfig’ and add ./node_modules/.\* under [ignore]