Skip to content

Commit 6132c62

Browse files
authored
Remove adding flow section
1 parent 58d4128 commit 6132c62

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

react-native-scripts/template/README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Below you'll find information about performing common tasks. The most recent ver
1414
* [Writing and Running Tests](#writing-and-running-tests)
1515
* [Environment Variables](#environment-variables)
1616
* [Configuring Packager IP Address](#configuring-packager-ip-address)
17-
* [Adding Flow](#adding-flow)
1817
* [Customizing App Display Name and Icon](#customizing-app-display-name-and-icon)
1918
* [Sharing and Deployment](#sharing-and-deployment)
2019
* [Publishing to Expo's React Native Community](#publishing-to-expos-react-native-community)
@@ -124,24 +123,6 @@ npm start
124123

125124
The above example would cause the development server to listen on `exp://my-custom-ip-address-or-hostname:19000`.
126125

127-
## Adding Flow
128-
129-
Flow is a static type checker that helps you write code with fewer bugs. Check out this [introduction to using static types in JavaScript](https://medium.com/@preethikasireddy/why-use-static-types-in-javascript-part-1-8382da1e0adb) if you are new to this concept.
130-
131-
React Native works with [Flow](http://flowtype.org/) out of the box, as long as your Flow version matches the one used in the version of React Native.
132-
133-
To add a local dependency to the correct Flow version to a Create React Native App project, follow these steps:
134-
135-
1. Find the Flow `[version]` at the bottom of the included [.flowconfig](.flowconfig)
136-
2. Run `npm install --save-dev [email protected]` (or `yarn add --dev [email protected]`), where `x.y.z` is the .flowconfig version number.
137-
3. Add `"flow": "flow"` to the `scripts` section of your `package.json`.
138-
4. Add `// @flow` to any files you want to type check (for example, to `App.js`).
139-
140-
Now you can run `npm run flow` (or `yarn flow`) to check the files for type errors.
141-
You can optionally use a [plugin for your IDE or editor](https://flow.org/en/docs/editors/) for a better integrated experience.
142-
143-
To learn more about Flow, check out [its documentation](https://flow.org/).
144-
145126
## Sharing and Deployment
146127

147128
Create React Native App does a lot of work to make app setup and development simple and straightforward, but it's very difficult to do the same for deploying to Apple's App Store or Google's Play Store without relying on a hosted service.

0 commit comments

Comments
 (0)