mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
343c5a97a0
Summary: `metro-bundler` looks for `.native.js` files ([see here](https://github.com/facebook/metro-bundler/blob/master/packages/metro-bundler/src/node-haste/DependencyGraph/ModuleResolution.js#L458)). Packages such as `react-navigation` rely on this functionality ([see here](https://github.com/react-community/react-navigation/blob/master/src/PlatformHelpers.native.js)). This PR makes it so you can `react-native init`, `yarn add react-navigation`, and `flow` successfully! 1. `react-native init` 2. `yarn add react-navigation` 3. `flow` [CLI] [MINOR] [Flow] - Tell template app .flowconfig to look for .native.js files Closes https://github.com/facebook/react-native/pull/16816 Differential Revision: D6445363 Pulled By: shergin fbshipit-source-id: c0ce7ed27a8a3291deaa09d98e822362f93929c8 |
||
---|---|---|
.. | ||
__mocks__ | ||
__tests__ | ||
bundle | ||
core | ||
dependencies | ||
eject | ||
generator | ||
info | ||
init | ||
install | ||
library | ||
link | ||
logAndroid | ||
logIOS | ||
runAndroid | ||
runIOS | ||
server | ||
templates | ||
upgrade | ||
util | ||
.eslintrc | ||
cli.js | ||
cliEntry.js | ||
commands.js | ||
setup_env.bat | ||
setup_env.sh | ||
wrong-react-native.js |