A sample project to build a cross-device application over iOS / android / web (+ electron) using React, React native, Redux.
$ git clone git@github.com:yuichiroTCY/ReactCrossDeviceTodoExample.git
$ cd ReactCrossDeviceTodoExample
$ npm install
First, run react-native-server.
$ npm start
Next, run apps.
$ react-native run-ios
$ react-native run-android
First, build it.
$ gulp build
The output files are stored in public
directory.
Then, run webpack-dev-server
(if not installed, run npm install -g webpack-dev-server
)
$ webpack-dev-server
First, build the web app.
$ gulp build
Then, run electron app
$ npm run electron