:rocket: A starter boilerplate for a mobile app using React Native and Redux
A starter boilerplate for a mobile app using React Native and Redux.
6.x
or newer23.0.1
or newer for Android developmentSee Getting Started to install requirement tools.
0.57.0
for building native apps using react4.0.0
a predictable state container for Javascript apps7.2.3
for ES6+ support2.7.2
a UI components for React Native2.7.2
2.0.3
3.1.1
0.5.2
On the command prompt run the following commands
$ git clone [email protected]:daviddang91/react-native-redux-starter-kit.git
$ cd react-native-redux-starter-kit/
$ npm install
Method One
Open the project in Xcode from ios/ReactNativeStarter.xcodeproj.
Hit the play button.
Method Two
$ react-native run-ios
Make sure you have an Android emulator installed and running.
Run the following command in your terminal.
$ react-native run-android
This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.
npm i -D eslint eslint-config-airbnb babel-eslint eslint-plugin-babel eslint-plugin-react eslint-plugin-react-native eslint-plugin-import eslint-plugin-jsx-a11y
from your project root."extends": "airbnb"
to your .eslintrc and "plugins": [ "babel", "react", "react-native", "jsx-a11y" ]
apm install linter-eslint
this also installs linter
which clashes with nuclide diagnosticsapm disable linter
to stop the linter clashing with nuclideSee Airbnb's Javascript styleguide and the ESlint config docs for more information.
5.10.0
persist and rehydrate a redux store2.13.5
Rename react-native app with just one command
This package assumes that you created your react-native project using
react-native init
.
yarn global add react-native-rename
or
npm install react-native-rename -g
Switch to new branch first
better to have back-up
git checkout -b rename-app
react-native-rename <newName>
With custom Bundle Identifier (Android)
react-native-rename <newName> -b <bundleIdentifier>
react-native-rename "Travel App"
With custom Bundle Identifier
react-native-rename "Travel App" -b com.junedomingo.travelapp