/ts-react-native-redux-saga

ReactNative + Typescript + Redux + Redut Saga example

Primary LanguageTypeScriptMIT LicenseMIT

React Native Boilerplate With Typescript + Redux Saga

React Native + Typescript + Redux + Redux Saga boilerplate inspired by karanpratapsingh/react-native-boilerplate

Index

Content:

- React Native (0.63.2) + Hermes
- TypeScript
- Clean Directory Layout
- ESLint
- Packages:
    - Redux + Redux Saga
    - React Navigation (Hooks)
    - React Native Reanimated
    - React Native Vector Icons
    - React Native Gesture Handler

Running the project

Assuming you have all the requirements installed, you can setup and run the project by running:

  • yarn install to install the dependencies

  • use the following steps for your platform

Android

Run the following command while the simulator is open or a device is connected via adb.

yarn android

iOS

Run the following commands to install pods and run the app on iPhone 6 simulator (device can be changed via package.json scripts)

yarn cocoapods
yarn ios

Updates

The boilerplate will follow latest React Native releases as soon as libraries and tools used here are compatible. I will personally try update this as I use this boilerplate in production 😄

Known Issues:

Cocoapods install fails

yarn cocoapods might fail for some users, if this happens then try deleting Podlock.file and re-running the yarn cocoapods command 😄

If the error persists then please check your cocoapods version using pod --version . It should be >= 1.7.5 . If not then please run sudo gem install cocoapods 😃

Troubleshooting:

Please follow this guidelines when reporting bugs and feature requests:

  1. Use GitHub Issues board to report bugs and feature requests (not our email address)
  2. Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

Author:

License:

The MIT License (see the LICENSE file for the full text)