react-native/local-cli
ashoat 343c5a97a0 Tell template app .flowconfig to look for .native.js files
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
2017-11-29 22:01:28 -08:00
..
__mocks__ packager-worker-for-buck: bundleCommand-test.js: add more consistency 2017-11-23 03:16:19 -08:00
__tests__ packager-worker-for-buck: bundleCommand-test.js: add more consistency 2017-11-23 03:16:19 -08:00
bundle Export Config/defaults on Metro's main module 2017-11-29 04:45:47 -08:00
core Rename metro-bundler to metro 2017-11-29 03:35:29 -08:00
dependencies Rename ReactPackager -> Metro 2017-11-29 07:00:52 -08:00
eject Run eslint --fix 2017-10-09 17:46:44 -07:00
generator Run eslint --fix 2017-10-09 17:46:44 -07:00
info added info CLI command 2017-07-18 11:45:47 -07:00
init Change indentation of package.json including Jest to 2 spaces 2017-10-15 10:50:20 -07:00
install Use Yarn for Install/Uninstall CLI if available 2017-02-02 05:13:33 -08:00
library Reject local-cli promises with Error objects 2017-08-08 09:38:21 -07:00
link Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
logAndroid
logIOS
runAndroid Run eslint --fix 2017-10-09 17:46:44 -07:00
runIOS Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
server Export Config/defaults on Metro's main module 2017-11-29 04:45:47 -08:00
templates Tell template app .flowconfig to look for .native.js files 2017-11-29 22:01:28 -08:00
upgrade New upgrading process, relying on Git 2016-11-28 08:28:35 -08:00
util Rename metro-bundler to metro 2017-11-29 03:35:29 -08:00
.eslintrc Disallow trailing commas in react-native-github 2017-08-17 16:20:04 -07:00
cli.js packager: centralize babelRegisterOnly callsites 2017-01-06 06:13:54 -08:00
cliEntry.js @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00
commands.js added info CLI command 2017-07-18 11:45:47 -07:00
setup_env.bat
setup_env.sh CLI: Adding shebang to setup_env.sh script 2017-05-31 02:46:23 -07:00
wrong-react-native.js Run eslint on all js files 2017-07-12 14:09:53 -07:00