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 installto install the dependencies.- This project requires Cordova to run Cordova commands.
npm install -g cordovato install it globally.
cordova platform add browserfor browser platform.cordova platform add iosfor ios platform.
npm run buildcreates production build for react app.npm run build:cordovacreateswwwfolder using react production build, which will be used for cordova builds.cordova build browsercordova creates browser build inplatforms/browser/cordova build ioscordova creates ios build inplatforms/ios/
npm startstarts the dev server for react app.cordova run browserwill run in browser. Note: Use this only afternpm run build:cordovacordova run ioswill run in emulator. Note: Use this only afternpm run build:cordova
- Follow this Guide