The React Native, Redux based boilerplate. Clone the repo to get init the new project
This project is maintained by thuyiya
This Boiler Plate Kit helps you get started with React Native. It contains a bunch of helpful components, building blocks and basic structure to allow you to jump straight into building an app.
Before you use the app set your app facebook and google clientid to constent/consts.js
library | Summary |
---|---|
Redux | A predictable state container - Helping you write applications that behave consistently and run in different environments. |
React Navigation | Routing and navigation for your React Native apps, based on new React Native Navigation API. ‘How to’ Guide → |
axios | Promise based HTTP client for the browser and node.js |
Google Analytics | Shows how to track screen views (includes both a ‘debug’ mode tracker as well as ‘release’ mode so that data doesn’t get obfuscated). Setup Guide → |
Vector Icons | React Native Vector Icons, Easily use icons from a wide range of icon libraries, it’s as simple as importing the icon font and then <Icon name={'ios-alert-outline'} size={50} color={"#CCC"} /> . |
Redux Promise Middleware | Redux middleware for resolving and rejecting promises with conditional optimistic updates |
Redux Form | The best way to manage your form state in Redux |
Component Style Guide | A bunch of elements and components to get you started - styled headings, buttons, list rows, alerts etc. |
Code Linting / Code Style Guide | We’re using Airbnb’s JS/React Style Guide with ESLint linting. Get started with linting for React Native → |
Boilerplate | An example directory/file structure I’ve found useful for scaling apps Learn more →](#understanding-the-file-structure) |
Feature | Summary |
---|---|
Language feature | translate |
Theme | App theme, color chnages |
Empty Data Set Image Generator | Add ‘No data’ images |
UI Tips | For help disck for users |
https://github.com/thuyiya/react-native-boilerplate.git
app.json
, package.json
and form index.js
rm -rf ios android
react-native eject
rm -rf .git
git init
git remote add origin <YOUR_REPO_URL>
For Clear and clean code, we use EsLint and Vscode configaration Editor Configaration
"eslint.autoFixOnSave": true,
react-native-template
│
└───assets
│ │ fonts
│ │ icons
│
└───constants
│ │ api.js
│ │ Theme.js
│ │ consts.js
│
└───helpers
│ │ cachedFonts.js
│ │ index.js
│
└───src
│ │ index.js
│ │ Root.js
│ │
│ └───routes
│ │ HomeNavigator.js
│ │ Navigator.js
│ │
│ commons
│ │ styles
│ │ └───LoadingScreen.js
│ │ index.js
│ │ LoadingScreen.js
│ │ TextInputWithValidations.js
│ │
│ redux
│ │ reducer.js
│ │ store.js
│ │
│ screens
│ index.js
│ home
│ │ └───components
│ │ │ styles
│ │ │ └───DataList.js
│ │ │ DataList.js
│ │ │
│ │ styles
│ │ │
│ │ HomeScreen.js
│ │ index.js
│ │
│ addView
│ │ └───components
│ │ │ styles
│ │ │ └───addViewForm.js
│ │ │ addViewForm.js
│ │ │ index.js
│ │ │
│ │ styles
│ │ └───addViewScreen.js
│ │ addViewScreen.js
│ │ index.js
│ │ validations.js
│ │
│ Notification
│ │ NotificationScreen.js
│ │ index.js
│ │
│ Profile
│ │ ProfileScreen.js
│ │ index.js
│
│ .babelrc
│ .eslintrc
│ .editorconfig
│ App.js
│ app.json
│ jsconfig.json
│ package.json
│ README.md