2.0.1 • Published 3 years ago

react-native-template-rokket v2.0.1

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

React Native Template Rokket

npm

:rocket: Developed by Rokket Labs :rocket:

Official template for React Native apps used by Rokket Labs for its iOS and Android apps. It is based on the newest and latest version of React Native and includes several starter packages for you to start your own app ASAP! :rocket:

This template is useful for all types of apps, as it includes the bare minimum for you to start coding in just a couple of minutes. This templates also includes useful debugging tools such as Reactotron, and sets a standard for your development team, such as out-of-the-box ESLint support and file structure for components, views and tests.

Installation and Usage

:warning: This template is intended for React Native versions >= 0.60. It has not been tested with previous versions. :warning:

To start a new app with React Native Template Rokket, simply start a new project using React Native CLI with npx (https://facebook.github.io/react-native/docs/getting-started.html). To do this, create a new app using react-native-template-rokket as a template. Easy as pie! :cake:

npx --ignore-existing react-native init PROJECT_NAME --template react-native-template-rokket

The template will replace your project's name in all relevant parts of the app. Neat! :godmode:

To start using your app, first copy the existing .env.example file into a new .env file and replace your IP address to start debugging with Reactotron. After that, simply run yarn ios (only on Mac) or yarn android (emulator must be running or an Android device with USB debugging must be plugged in) depending on your platform of choice.

Features

This template includes the following:

  • Full Typescript 4.2 support
  • React Native 0.64 and React 17 support
  • Easy to use and understand folder structure to get you up and running as fast as possible
  • Starter example with themes and React Query for GraphQL requests
  • React Navigation 5.0
  • Reactotron configured for debugging (including console.tron shortcut)
  • ESLint, TSLint and Prettier configured out-of-the-box
  • Helpful DevTools such as Husky, LintStaged and Reactotron already set up

How to contribute

If you'd like to contribute to this template, your help is more than welcome! :feelsgood:

Big thanks to Chris Geirman and his super useful guide on React Native templates, which you may want to read before adding your contributions.

Local testing

Fork this repository, clone it, and start a new app with the following command to use the local template:

npx react-native init test --template file:///path/to/your/cloned/repo

Pull requests and Issues

PR's and issues are a great contribution for us, and we'll get to them as fast as we (humanly :robot:) can. Please create your pull requests from your own fork, and if you're raising an issue, try to be as descriptive as possible so we can zap those pesky bugs :zap:.

2.0.1

3 years ago

2.0.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago