Use Angular 2 and React Native to build applications for Android and iOS.
http://mlaval.github.io/poc-angular-react-native/
- Set up React Native for iOS and/or Android following Getting started and Android setup
- Clone this repository or a fork of it
- Install Gulp, React Native CLI and Typings globally:
npm install -g gulp react-native-cli typings - Install local npm modules:
npm install
Creating the sample project:
gulp initto create the react-native project
Android:
gulp start.androidto launch the sample on the connected device or emulator, and watch sources for auto update (if enabled in F2/shake dev menu)
use theReload JSbutton after the initial red screen
iOS:
gulp start.iosto launch the sample on an emulator, and watch sources for auto update (it will fail the first due to initial compilation, simply restart it)- OR,
gulp watchand open.dist/app/ngReactNative/ios/ngReactNative.xcodeprojin Xcode and hitRun
Tests:
gulp test.nodeto run tests in Nodegulp test.browserto run tests in Chrome
Doc: gulp doc to generate the documentation in ./dist/doc