mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-21 16:28:33 +00:00
Update Contributing.md
This commit is contained in:
parent
89865f2de3
commit
15ae93428f
@ -44,12 +44,6 @@ $ yarn add ../react-native-webview && react-native link react-native-webview
|
||||
|
||||
## Notes
|
||||
|
||||
- We use Flow types. TypeScript types will probably be added at a later date.
|
||||
- We use TypeScript.
|
||||
- We don't intend to support UIWebView and will remove it soon.
|
||||
- After pulling this repo and installing all dependencies, you can run flow on iOS and Android-specific files using the commands:
|
||||
- `yarn test:ios:flow` for iOS
|
||||
- `yarn test:android:flow` for Android
|
||||
- You can run Jest tests using the command: `yarn test:js`
|
||||
- If you want to add another React Native platform to this repository, you will need to create another `.flowconfig` for it. If your platform is `example`, copy the main flowconfig and rename it to `.flowconfig.example`. Then edit the config to ignore other platforms, and add `.*/*[.]example.js` to the ignore lists of the other platforms. Then add an entry to `package.json` like this:
|
||||
- `"test:example:flow": "flow check --flowconfig-name .flowconfig.example"`
|
||||
- Currently you need to install React Native 0.57 to be able to test these types - `flow check` will not pass against 0.56.
|
||||
- After pulling this repo and installing all dependencies, you can run tests using the command: `yarn ci`
|
||||
|
Loading…
x
Reference in New Issue
Block a user