mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-25 07:34:45 +00:00
[change] Add generated Flow files to package dist
Fix #1684 Close #1982
This commit is contained in:
committed by
Nicolas Gallagher
parent
4e77aebc17
commit
c4e2d7a919
@@ -65,10 +65,12 @@ module.exports = {
|
||||
|
||||
### Flow
|
||||
|
||||
[Flow](https://flow.org) can be configured to understand the aliased module. You may also need to include a custom libdef ([example](https://gist.github.com/paularmstrong/f60b40d16fc83e1e8e532d483336f9bb)) in your config.
|
||||
[Flow](https://flow.org) can be configured to understand the aliased module and pull types from Reac Native Web's source code. To do this, you can alias the name as below. You will also need to tell flow to use the `module` field of RNW's `package.json` or it may not find the flow types.
|
||||
|
||||
```yml
|
||||
[options]
|
||||
module.system.node.main_field=module
|
||||
module.system.node.main_field=main
|
||||
module.name_mapper='^react-native$' -> 'react-native-web'
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user