A React Native starter template.
- Redux setup with Redux Toolkit.
- Offline storage with Redux Persist.
- Typescript
- Dark Mode
- Navigation setup
- Login wiring (optional)
- Sample CRUD code (To Do App) included.
- Sample Network Call (RTK) included.
- Secure Token storage.
- Husky
- Environment Variables (ENV)
- Storybook configured
- React Native v0.74.5
- Redux Toolkit (RTK) v2.0
- TypeScript
- React Navigation v6
- React Native Vector Icons
- Formik & Yup
- Axios
- React Native Keychain
- Redux persist
- Storybook
git clone https://github.com/saheeranas/react-native-redux-boilerplate.git
cd react-native-redux-boilerplate
yarn
or
npm i
Example: .env.template file to .env
yarn android
or
npm run android
or
yarn ios
or
npm run ios
You can create custom component library and maintain using storybook.
By running following command, you can start metro server
yarn storybook:start
or
npm run storybook:start
You can see multiple components added to StoryBook in this App already.
-
Each component shall have a 'component.stories.tsx' file, which contains definition and multiple variants of the same component (eg:- primary, secondary or h1, h2, p etc)
-
This 'stories' file need to imported in getStories function in '.storybook/storybook.requires.js' file
This project is licensed under the MIT License - see the LICENSE.md file for details