A proof of concept of building native applications with Angular 2 and React Native. Based on https://github.com/angular/react-native-renderer Only tested on Windows targeting Android
- Set up React Native for Android following Getting started and Android setup
- Clone this repository or a fork of it
- Install Gulp and React Native CLI globally:
npm install -g gulp react-native-cli - Install local npm modules:
npm install
To launch the sample:
gulp initto create the react-native projectgulp startto launch it on the connected device or emulator, and watch sources for auto update (if enabled in F2/shake dev menu) (theReload JSbutton may have to be hit sometimes)
Tip: if your computer is too slow to start the file watcher, increase the timer in .\dist\app\ngReactNative\node_modules\react-native\packager\react-packager\src\FileWatcher\index.js
To run tests in node:
- Launch
gulp test.node
To run tests in Chrome:
- Launch
gulp test.browser