https://github.com/coreyphillips/baseproject
https://github.com/coreyphillips/baseproject
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/coreyphillips/baseproject
- Owner: coreyphillips
- Created: 2017-07-30T18:27:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-30T18:35:28.000Z (almost 8 years ago)
- Last Synced: 2025-03-24T10:51:52.571Z (3 months ago)
- Language: JavaScript
- Size: 635 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Base Project - React Native
## Installation/Setup
- `git clone [email protected]:synoviasolutions/hctb-reactnative.git`
- `cd baseProject`
- `npm i`
- Run on iOS `react-native run-ios` or Android `react-native run-android`## Create repo from scratch
- `react-native init baseProject`
- `cd baseProject`
- `npm i -S react-navigation react-redux redux redux-persist redux-thunk react-native-vector-icons react-native-code-push`
- `npm i -D babel-eslint eslint eslint-plugin-babel eslint-plugin-flowtype eslint-plugin-import eslint-plugin-react`
- `react-native link`## Create Android Build
- `react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.jsbundle --assets-dest android/app/src/main/res`
- `cd android && ./gradlew assembleRelease --no-daemon`
The apk can then be located in /android/app/build/outputs/apk/app-release.apk## CodePush
- `code-push release-react hctb-ios ios`
- `code-push release-react hctb-android android`
For more detailed instructions see: https://microsoft.github.io/code-push/docs/cli.html#releasing-updates-react-native