Skip to content

A React Native boilerplate app to get you up and running quickly.

License

Notifications You must be signed in to change notification settings

hanpanpan200/react-native-starter

Repository files navigation

React Native Starter Build Status

React Native Starter is a React Native boilerplate app to get you up and running quickly.

Setup React Native

Please follow React Native Getting Started to finish the setup.

In the Building Projects with Native Code section, please make sure you have setup your Android and iOS environment.

Stack

React Native for build native Apps

Redux a predictable state container for Javascript apps

axios a promise based HTTP client for the browser and node.js

prop-types Runtime type checking for React props and similar objects

react-native-router-flux navigation for React Native

redux-thunk Thunk middleware for Redux

redux-logger Logger for Redux

How to run

Please use yarn to install the npm dependencies.

yarn install

Then you can run iOS:

react-native run-ios

Or run Android:

react-native run-android

Available scripts

For test:

yarn test

For eslint:

yarn lint

How to reuse

You've cloned the project and you're wanting to make it your own. But..."ReactNativeStarter".

With react-native-rename, React Native Rename will replace all files, directories and references of ReactNativeStarter to what ever you'd like.

Install the package

yarn global add react-native-rename

Rename the App

react-native-rename NewAppName

Change ApiHost

Please change your API HOST in ./src/config/apiConfig

For example, change:

const API_HOST = ''

export default API_HOST

To:

const API_HOST = 'https://yourhost'

export default API_HOST

Then you can build your own App on the basis of ReactNativeStarter! 🙌🏻

About

A React Native boilerplate app to get you up and running quickly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published