update README

- got evidence from @dvcrn that figwheel works on real iOS device
- source maps are supported when you debug in chrome.
This commit is contained in:
Artur Girenko 2016-01-21 20:41:28 +01:00
parent 337bd49735
commit f15d9885a4
1 changed files with 10 additions and 3 deletions

View File

@ -25,7 +25,7 @@ Contributions are welcome.
- Uses React Native v0.18.0
- Same codebase for iOS and Android
- Figwheel used for REPL and live coding.
- Works in iOS (tested using simulator).
- Works in iOS (real device and simulator).
- Works in real Android device
- Works in Android simulator Genymotion (with re-natal use-figwheel -H 10.0.3.2)
- Works in stock Android emulator (with re-natal use-figwheel -H 10.0.2.2)
@ -33,6 +33,7 @@ Contributions are welcome.
- You can reload app any time, no problem.
- "Debug in Chrome" is not required anymore.
- Custom react-native components are supported (with re-natal use-component <name>)
- Source maps are available when you "Debug in Chrome"
- Optimizations :simple is used to compile "production" index.ios.js and index.android.js
- [Unified way of using static images of rn 0.14+](https://facebook.github.io/react-native/docs/images.html) works
- Works on Linux (Android only)
@ -251,7 +252,14 @@ $ re-natal use-figwheel
To upgrade React Native to newer version please follow the official
[Upgrading](https://facebook.github.io/react-native/docs/upgrading.html) guide of React Native.
Re-Natal makes no changes to the files generated by react-native so the official guide should be valid.
Re-Natal makes almost no changes to the files generated by react-native so the official guide should be valid.
### Changes Re-Natal does to original RN application
It would be perfect not to do any changes there, but...
* To make source maps available in "Debug in Chrome" mode re-natal patches
the react native packager to serve \*.map files from file system.
To do this [these lines are commented](https://github.com/facebook/react-native/blob/master/packager/react-packager/src/Server/index.js#L400-L401)
in file "node_modules/react-native/packager/react-packager/src/Server/index.js"
## Tips
- Having `rlwrap` installed is optional but highly recommended since it makes
@ -273,7 +281,6 @@ index of the device on the list.
- The Xcode-free workflow is for convenience. If you're encountering app crashes,
you should open the Xcode project and run it from there to view errors.
## Dependencies
As Re-Natal is the orchestration of many individual tools, there are quite a few dependencies.
If you've previously done React Native or Clojure development, you should hopefully