react-native-redux-toolkit-starter-app icon indicating copy to clipboard operation
react-native-redux-toolkit-starter-app copied to clipboard

📱🚀A POWERFUL React Native starter kit to bootstrap the start of your mobile app development

React Native Redux Toolkit Start App

A React Native boilerplate app to bootstrap your next app wit Redux Toolkit and Saga!

🔥🔥🔥 Upgraded to the latest React-Native (> 0.69.x) with brand New Architecture (Fabric) 🔥🔥🔥


🔥🔥 Checkout also my brand new React Native React-Query (no redux toolkit) here 🔥🔥

License All Contributors

Issues

Build

Build Build

Buy Me A Coffee

Table of Contents

  • 🔥🔥🔥 Upgraded to the latest React-Native (> 0.69.x) with brand New Architecture (Fabric) 🔥🔥🔥
  • 🔥🔥 Checkout also my brand new React Native React-Query (no redux toolkit) here 🔥🔥
  • Installation :inbox_tray:
  • Rename project and bundles :memo: :package:
    • iOS & Android
  • Environment Setup :globe_with_meridians:
  • Scripts :wrench:
    • Run the app
    • Generate app icons
    • Generate Splashscreen
    • To enabled React-Native (Fabric) new architecture
    • Setup iOS
    • Typescript (optional)
  • Roadmap :running:
  • Screenshots
  • Contributors :sparkles:
  • License :scroll:

Installation :inbox_tray:

# Setup your project
> npx degit IronTony/react-native-redux-toolkit-starter-app your-new-app

> cd your-new-app

# Install dependencies
> yarn

# if needed, setup iOS development environment
yarn setup:ios

See environment section for how to configure env variables.

See scripts section for how to run the app.


Rename project and bundles :memo: :package:

To rename the project and bundles, just follow these steps:

iOS & Android

Run npx react-native-rename [name] -b [bundle-identifier] from the project root

Example: npx react-native-rename "Test New App" -b com.testnewapp


Environment Setup :globe_with_meridians:

React Native Starter App environments variables management is based on a custom script and the app.json config file.

Define your environment variables inside app.json inside the environments object under the desired environment key (such as development, staging or production) and then run the app for the required env using one of the available run scripts (e.g. ios:dev).

If you want to use IDEs such Xcode or Android Studio, you have to set up the ENV variables with these commands:

  • yarn env:dev, to set the development ENV variables
  • yarn env:stage, to set the staging ENV variables
  • yarn env:prod, to set the production ENV variables

Scripts :wrench:

Run the app

To run the app use one of the following scripts:

  • yarn android:dev, to start the app on Android with the development environment variables.

  • yarn android:stage, to start the app on Android with the staging environment variables.

  • yarn android:prod, to start the app on Android with the production environment variables.

  • yarn ios:dev, to start the app on iOS with the development environment variables.

  • yarn ios:stage, to start the app on iOS with the staging environment variables.

  • yarn ios:prod, to start the app on iOS with the production environment variables.

Generate app icons

To setup the app icons:

  • create an image at least 1024x1024px
  • place it under /assets folder as icon.png
  • run
yarn assets:icons

Generate Splashscreen

To setup the app splashscreen:

  • create an image at least 1242x2208px
  • place it under /assets folder as splashscreen.png
  • run
yarn assets:splashscreen

To enabled React-Native (Fabric) new architecture

Check the official documentation here

Setup iOS

To setup the environment to run on iOS, run

yarn setup:ios

this will run cocoapods to install all the required dependencies.

Typescript (optional)

The use of Typescript in the project is not mandatory. You can just write all your code using plain Javascript. Our hint is to create all files as below:

  • files with logic and Views with tsx extension
  • files with Stylesheet and others with ts extension

To enable full Typescript checks, just open the tsconfig.json file and chage as below:

"noImplicitAny": true, // set to true to be explicit and declare all types now<br/>
"strict": true,  // enable it to use fully Typescript set of invasive rules<br/>

REMEMBER: the entry point file in the root of the project MUST be index.js


Roadmap :running:

✅ Initial Setup
react-native-splashscreen (https://github.com/crazycodeboy/react-native-splash-screen)
react-native-toolbox to generate Splashscreen and icons automagically (https://github.com/panz3r/react-native-toolbox)
✅ Standard tree folders structure
React-Native 0.69 (new architecture)
redux-toolkit
redux-persist (https://github.com/rt2zz/redux-persist)
React Native Debugger
React Native Flipper Integration
redux-saga
i18next
react-navigation v6 ❤️
Nativebase v3 as design system
Env variables selection experimental way ⚗️⚗️⚗️
✅ Typescript (optional use. Read the DOC above)

UI Kitten is not supported anymore!


Screenshots


Contributors :sparkles:

Thanks goes to these wonderful people (emoji key):


IronTony

🤔 💻 📖 🐛 🚧 📦 💬 👀 ⚠️ 💡

Mattia Panzeri

🤔 📖 🔧

This project follows the all-contributors specification. Contributions of any kind welcome!


License :scroll:

Licensed under Mozilla Public License Version 2.0