https://github.com/iSimar/React-Native-Starter-Pack
React Native + React-Redux + Native Base + Code Push
https://github.com/iSimar/React-Native-Starter-Pack
Last synced: 9 months ago
JSON representation
React Native + React-Redux + Native Base + Code Push
- Host: GitHub
- URL: https://github.com/iSimar/React-Native-Starter-Pack
- Owner: iSimar
- Created: 2016-09-24T16:52:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-24T20:55:36.000Z (about 9 years ago)
- Last Synced: 2024-10-29T13:50:14.624Z (about 1 year ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 40
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-react-native - React-Native-Starter-Pack ★40 - React Native 0.34 + React-Redux (w/ Redux-Storage) + Native Base + Code Push (Seeds / Other Platforms)
- fucking-awesome-react-native - React-Native-Starter-Pack ★40 - React Native 0.34 + React-Redux (w/ Redux-Storage) + Native Base + Code Push (Seeds / Other Platforms)
- awesome-react-native - React-Native-Starter-Pack ★40 - React Native 0.34 + React-Redux (w/ Redux-Storage) + Native Base + Code Push (Seeds / Other Platforms)
- awesome-react-native - React-Native-Starter-Pack ★40 - React Native 0.34 + React-Redux (w/ Redux-Storage) + Native Base + Code Push (Seeds / Other Platforms)
- awesome-react-native - React-Native-Starter-Pack ★40 - React Native 0.34 + React-Redux (w/ Redux-Storage) + Native Base + Code Push (Seeds / Other Platforms)
- awesome-react-native-ui - React-Native-Starter-Pack ★32 - React Native 0.34 + React-Redux (w/ Redux-Storage) + Native Base + Code Push (Seeds / Other Platforms)
README
# React-Native-Starter-Pack
[React Native](https://facebook.github.io/react-native/) + [React-Redux](https://github.com/reactjs/react-redux) + [Native Base](http://nativebase.io) + [Code Push](http://microsoft.github.io/code-push/)
##Setting Up Project
1) `npm i -g rninit`
2) `rninit init --source react-native@0.34`, this is basically "react-native init" but you can specify a version of react-native
3) `git init`
4) `git add . && git commit -m "first commit"`
5) `git remote add starterpack https://github.com/iSimar/React-Native-Starter-Pack.git`
6) `git pull starterpack`
7) `git merge -s recursive -X theirs starterpack/master`
8) Change `new_app_name` in index.ios.js (line 5), index.android.js (line 5) and package.json (line 2) file to ``
9) `npm install`
10) `code-push app add `
11) `react-native link`, put the **production** code-push key from **step 10** when prompted
12) `git add . && git commit -m "first production commit"`
##Deploying Changes Through Code Push
1) Make your code changes
2) `code-push release-react ios --deploymentName Production`, release for ios
3) `code-push release-react android --deploymentName Production`, release for android
Tip: if you messed up a release and want to rollback use `code-push rollback Production`
**code-push release-react command options:**
```
code-push release-react
[--bundleName ]
[--deploymentName ]
[--description ]
[--development ]
[--disabled ]
[--entryFile ]
[--mandatory]
[--plistFile ]
[--plistFilePrefix ]
[--sourcemapOutput ]
[--targetBinaryVersion ]
[--rollout ]
```
4) You can view your current deployment stats using `code-push deployment history Production`
##Store Releases
If you want to release a new update of your app through the play store or app store, do the following:
1) Make your code changes.
2) Increment app version number in `ios//Info.plist` (CFBundleShortVersionString & CFBundleVersion) and `android/app/build.gradle` (versionCode & versionName)
3) Build and submit your app to the store