An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

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