react-native/scripts
Ville Immonen 6e99e314b2 Move HelloWorld template to a single index.js entry point
Summary:
This change (initially discussed in https://github.com/react-community/create-react-native-app/issues/26) moves the HelloWorld project template from two nearly identical entry points (`index.android.js` and `index.ios.js`) to a single, minimal `index.js` entry point. The root component is created in `App.js`. This unifies the project structure between `react-native init` and Create React Native App and allows CRNA's eject to use the entry point from the HelloWorld template without any hacks to customize it. Also examples in the docs can be just copy-pasted to `App.js` the same way in both HelloWorld and CRNA apps without having to first learn about  `AppRegistry.registerComponent`.

* Created a new project from the template using `./scripts/test-manual-e2e.sh` and verified that:
  * The app builds, starts and runs both on Android and iOS.
  * Editing and reloading changes works.
  * The new files (`index.js`, `App.js`, `__tests__/App.js`) get created in the project folder.

<img width="559" alt="screen shot 2017-08-01 at 19 10 51" src="https://user-images.githubusercontent.com/497214/28835171-300a12b6-76ed-11e7-81b2-623639c3b8f6.png">
<img width="467" alt="screen shot 2017-08-01 at 19 09 12" src="https://user-images.githubusercontent.com/497214/28835180-33d285e0-76ed-11e7-8d68-2b3bc44bf585.png">

<!--
Thank you for sending the PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. In other words, a test plan is *required*. Bonus points for screenshots and videos!

Please read the Contribution Guidelines at https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md to learn more about contributing to React Native.

Happy contributing!
-->
Closes https://github.com/facebook/react-native/pull/15312

Differential Revision: D5556276

Pulled By: hramos

fbshipit-source-id: 068fdf7e51381c2bc50321522f2be0db47296c5e
2017-08-03 14:02:43 -07:00
..
android-e2e-test.js Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
bump-oss-version.js shelljs/global -> shelljs 2017-07-12 16:08:22 -07:00
circle-ci-android-setup.sh Updated extra-android-m2repository to get android support v4 23.4.0 2016-12-29 05:43:31 -08:00
ios-configure-glog.sh Removing test-driver symlink in ios third party install script 2017-06-21 07:45:37 -07:00
ios-install-third-party.sh Add some debug logging if tar fails 2017-06-15 13:05:05 -07:00
launchPackager.bat Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
launchPackager.command Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
objc-test-ios.sh Fix Travis podspec CI for Cxx bridge 2017-07-07 02:32:07 -07:00
objc-test-tvos.sh Fix Travis podspec CI for Cxx bridge 2017-07-07 02:32:07 -07:00
objc-test.sh Install watchman on Travis 2017-07-15 17:15:43 -07:00
packager.sh Fix `scripts/packager.sh` for RNTester 2017-05-25 09:46:23 -07:00
process-podspecs.sh Fix Travis podspec CI for Cxx bridge 2017-07-07 02:32:07 -07:00
publish-npm.js Circle CI releases now work with Java 8 2016-10-28 07:58:52 -07:00
react-native-xcode.sh Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
run-android-ci-instrumentation-tests.js Remove silly exit 2017-07-12 23:37:27 -07:00
run-android-emulator.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
run-android-local-integration-tests.sh Skip flaky ScrollView tests 2017-03-13 13:30:31 -07:00
run-android-local-unit-tests.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
run-ci-e2e-tests.js Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
run-instrumentation-tests-via-adb-shell.sh Stabilized TestIdTestApp integration test 2016-05-26 13:43:29 -07:00
sync-css-layout.sh Rename directories 2016-12-07 05:14:12 -08:00
test-manual-e2e.sh Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
try-n-times.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
validate-android-device-env.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
validate-android-sdk.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
validate-android-test-env.sh Fix broken Buck installation link 2017-07-31 13:03:20 -07:00