react-native/local-cli/templates/HelloWorld
Eric Vicenti bc74dd1e14 Eject CLI command to re-create native folders
Summary:
The iOS and Android native folders of a React Native app can be difficult to maintain. This introduces a new workflow for creating and maintaining the native code of your app.

Now it will be possible to:

1. Remove the native iOS or Android folders
2. Create an `app.json` for your app, with at least a `name` and `displayName`
3. Run `react-native eject`, and the native code for your app will be generated

Then, as usual, you can run `react-native run-ios` and `react-native run-android`, to build and launch your app

For apps that don't have any native code, it will be possible to ignore the `ios` and `android` folders from version control.

Eject step tested in RN app by deleting native folders.

mkonicek, what is the best way to test `react-native init`?

As follow-up items, we can enable the following:

- Configuring app icon and launch screen from the `app.json`
- Automatically run `react-native link` for native libraries
- A
Closes https://github.com/facebook/react-native/pull/12162

Differential Revision: D4509138

Pulled By: ericvicenti

fbshipit-source-id: 0ee213e68f0a3d44bfce337e3ec43e5024bacc66
2017-02-03 12:58:46 -08:00
..
__tests__ Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support 2016-11-18 18:28:51 -08:00
android Eject CLI command to re-create native folders 2017-02-03 12:58:46 -08:00
ios Eject CLI command to re-create native folders 2017-02-03 12:58:46 -08:00
_babelrc Fix handling of dotfiles in 'react-native init' and 'react-native upgrade' 2016-11-21 12:58:29 -08:00
_buckconfig Fix handling of dotfiles in 'react-native init' and 'react-native upgrade' 2016-11-21 12:58:29 -08:00
_flowconfig Enable emoji in flow 2017-01-19 07:43:31 -08:00
_gitattributes Allow git to merge pbxproj files 2016-11-22 17:58:29 -08:00
_gitignore Fix .gitignore of HelloWorld template to commit third party JARs 2017-02-02 04:13:59 -08:00
_watchmanconfig Fix handling of dotfiles in 'react-native init' and 'react-native upgrade' 2016-11-21 12:58:29 -08:00
app.json Eject CLI command to re-create native folders 2017-02-03 12:58:46 -08:00
index.android.js Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support 2016-11-18 18:28:51 -08:00
index.ios.js Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support 2016-11-18 18:28:51 -08:00