React Native Boilerplate is a starting point for React Native application. This project is configured with redux. Uses latest version of react-navigation (v6.0).
- React Hooks
- React Navigation with Authentication flow baked in & theming support.
- React Native Gesture Handler
- Redux with hooks support
- Jest
- Eslint
- Typescript
- Node v16 (it is recommended to install it via NVM)
- Yarn
- A development machine set up for React Native by following these instructions
- Clone this repo,
git clone https://github.com/huynextlevel/rn-boilerplate.git <your project name>
- Go to project's root directory,
cd <your project name>
- Remove
.git
folder,rm -rf .git
- Use React Native Rename to update project name
$ npx react-native-rename <newName> -b "bundle_identifier"
- Run
yarn
to install dependencies - If your laptop still use
pod
installed fromgem
. Please run:
bundle install
cd ios && pod install
-
If your laptop use
pod
installed fromhombrew
. Runcd ios && pod install
-
Start the packager with
yarn start
-
Connect a mobile device to your development machine
-
Run the test application:
- On Android:
- Run
react-native run-android
or Use Android Studio (Recommended)
- Run
- On iOS:
- Open
ios/YourReactProject.xcworkspace
in Xcode - Hit
Run
after selecting the desired device
- Open
- Enjoy!!!
PRs are welcome