Skip to content

React Native project template with my favourite tools preconfigured

Notifications You must be signed in to change notification settings

szymonkoper/rn-starter-template

Repository files navigation

rn-starter-template

RNStarterTemplate is an opinionated (by me) starting template for RN projects.

What is it for?

The idea behind this project is to have a project template for quick prototyping. It has preconfigured tech stack that I use the most, so I can mostly pass over the stop of the project setup and just jump straight into implementation of functionalities.

Demo

What's included?

  • react-navigation with initial boilerplate,
  • redux, react-redux, redux-logger, redux-thunk, redux-persist with a reducer for settings,
  • API clients:
    • REST with Axios,
    • GraphQL with Apollo,
  • configured localization with i18next, i18next-pseudo, react-i18next,
  • styled-components and styled-system,
  • lottie-react-native with example animations for success, failure, loading and empty state,
  • react-native-version-number and react-native-version for native bundles version updates after js package version update by yarn version,
  • react-native-config for .env file and preview of it,
  • unit and snapshots tests, redux testing with redux-testkit and event testing withreact-native-testing-library
  • eslint with airbnb-based config, but without semicolons at the ends of lines,
  • configured prettier,
  • prop-types,
  • absolute paths for imports,
  • .gitignore configured for RN and other used tools,
  • .vscode settings for Visual Studio Code to format files on save with prettier extension,
  • and finally a dev screen with useful settings and previews, that you can access with 4 quick taps at "Welcome to React" header,
  • default setup for Danger.js (it works with CI of this repository).

Can I use it?

Yes, you are welcome to use it in your projects if you like. If you have an idea for an improvement of this template - PRs are also welcome.

About

React Native project template with my favourite tools preconfigured

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published