More info on creating this structure and common issues can be found in the Wiki
Note: This is a sample project. Not intended to manitain for future releases
- Clone/ Download this Code.
npm install
to install the dependencies.- This project requires Cordova to run Cordova commands.
npm install -g cordova
to install it globally.
cordova platform add browser
for browser platform.cordova platform add ios
for ios platform.
npm run build
creates production build for react app.npm run build:cordova
createswww
folder using react production build, which will be used for cordova builds.cordova build browser
cordova creates browser build inplatforms/browser/
cordova build ios
cordova creates ios build inplatforms/ios/
npm start
starts the dev server for react app.cordova run browser
will run in browser. Note: Use this only afternpm run build:cordova
cordova run ios
will run in emulator. Note: Use this only afternpm run build:cordova
- Follow this Guide