https://github.com/anlisha-maharjan/react-native-boilerplate
A robust React Native boilerplate (for Android) with embedded authentication flow using React Navigation v6 and Redux.
https://github.com/anlisha-maharjan/react-native-boilerplate
react-native react-navigation-v6
Last synced: 3 months ago
JSON representation
A robust React Native boilerplate (for Android) with embedded authentication flow using React Navigation v6 and Redux.
- Host: GitHub
- URL: https://github.com/anlisha-maharjan/react-native-boilerplate
- Owner: anlisha-maharjan
- License: mit
- Created: 2022-04-05T14:29:06.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-03T12:11:01.000Z (about 3 years ago)
- Last Synced: 2025-01-07T09:45:33.175Z (5 months ago)
- Topics: react-native, react-navigation-v6
- Language: JavaScript
- Homepage:
- Size: 3.7 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## About The App
The project is a React Native boilerplate (for Android) that provides an architecture optimized for building solid cross-platform mobile applications with embedded authentication flow to help you kickstart new app.When starting new apps I found myself repeatedly setting up my project with same packages over and over again so I decided to automate this process.
While this mostly consists of how I organize my projects but can be easily extended to suit any workflow.
Feel free to leave a ⭐ as motivation if this was useful to you 😊
## Requirements- Node 12 or newer
- Java SE Development Kit (JDK) version 8 or newer
- Android Studio## Context
```bash
- React Native (0.68.1)
- React (17.0.2)
- Packages:
- Redux
- React Redux
- Redux-Saga
- React Navigation
- React Native Elements
- React Native Vector Icons
- Formik
- Axios
```
## Development```bash
# Clone the repo
git clone
cd zpol# Dependencies
npm install# Copy .env.example to .env
cp .env.example .env# Add APIURL in .env
APIURL=# Run Android
npx react-native run-android# Run metro server
npx react-native start```
## Build
```bash
# Generate Android Release Build APK
npx react-native run-android --variant=release#Generate Android Release AAB
#Generate AAB path - android/app/build/outputs/bundle/release/app-release.aab
cd android
./gradlew bundleRelease```
## Note
- In android/local.properties add following line: sdk.dir = YOUR_ANDROID_SDK_PATH