Overview:
The React Native Redux Toolkit Start App is a boilerplate app that is designed to provide a starting point for developers looking to build a React Native app with Redux Toolkit and Saga. It has been upgraded to the latest version of React Native and utilizes the new Fabric architecture. The app also includes a brand new React Native React-Query, which does not use Redux Toolkit.
Features:
- Built with Redux Toolkit and Saga for efficient state management
- Upgraded to the latest version of React Native with the new Fabric architecture
- Includes a brand new React Native React-Query implementation
- Supports iOS and Android platforms
- Allows for easy renaming of the project and bundles
- Supports environment variables management through the app.json config file
- Provides scripts for running the app with different environment variables
- Includes support for setting up TypeScript (optional)
- Provides a script checker for circular dependencies
- Offers a roadmap for future development
- Includes screenshot examples of the app
- Shows a list of contributors
- Comes with an open-source license
Installation:
To install the React Native Redux Toolkit Start App, follow these steps:
Rename the project and bundles:
- Run the command
npx react-native-rename [name] -b [bundle-identifier]from the project root. - Replace
[name]with the desired name for your project. - Replace
[bundle-identifier]with the desired bundle identifier for your project.
- Run the command
Environment Setup:
- Define your environment variables inside the
app.jsonfile, under theenvironmentsobject and the desired environment key (e.g. development, staging, production). - Run the app for the required environment using one of the available run scripts (e.g.
yarn ios:dev,yarn android:stage). - If using Xcode or Android Studio, set up the environment variables with the commands
yarn env:dev,yarn env:stage, oryarn env:prod.
- Define your environment variables inside the
Running the app:
- Use one of the following scripts to start the app with the desired environment variables:
yarn android:dev- for Android with development environment variablesyarn android:stage- for Android with staging environment variablesyarn android:prod- for Android with production environment variablesyarn ios:dev- for iOS with development environment variablesyarn ios:stage- for iOS with staging environment variablesyarn ios:prod- for iOS with production environment variables
- If using the iOS commands and encountering an error, follow the steps provided to resolve the issue.
- Use one of the following scripts to start the app with the desired environment variables:
Summary:
The React Native Redux Toolkit Start App is a boilerplate app that provides a solid foundation for building a React Native app with Redux Toolkit and Saga. With its support for the latest version of React Native and the Fabric architecture, it offers improved performance and stability. The inclusion of React Native React-Query provides an alternative to Redux Toolkit. The app also offers various features such as environment variables management, project renaming, and TypeScript support. Overall, this boilerplate app is a valuable resource for developers starting a new React Native project.