Frontend mobile application for bware.
- Javascript - high-level programming language.
- ReactJS - framework for js.
- ReactNative - framework for building native apps using JS and React.
Take git repository:
$ mkdir bwareFrontend
$ cd bwareFrontend
$ git clone ssh://git@git.milosolutions.com:8922/bware/bware-frontend.git .Install React Native prerequisites:
$ npm install -g react-native-cliInstall dependencies:
$ npm installInstall custom 3rd-party libraries:
- Download libraries from here https://seafile.milosolutions.com/d/7d358b2e92/.
- Copy them into project's directory and install:
$ npm install ./react-native-star-io-1.0.0.tgz
$ npm install ./react-native-verifone-0.0.1.tgz
$ npm install ./react-native-usb-printer-0.0.4.tgz
$ npm install ./react-native-acr-reader-1.0.0.tgzCheck node_modules/intl/.babelrc file, delete it if exists:
$ rm -f node_modules/intl/.babelrcStart react packager without cache:
$ npm start -- --reset-casheRun on android:
$ react-native run-androidRun on ios:
$ react-native run-iosClean project in case of 'Could not delete path' exception:
$ cd android && ./gradlew cleanRepositories for custom 3-rd party libraries:
Propertiary