christoz / react-native-template

A minimal template with architecture and boilerplate to let you focus on writing features right away.

Home Page:https://www.npmjs.com/package/@osamaq/react-native-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-template

Build Status npm downloads npm version

home reactotron


A minimal template with architecture and boilerplate to let you focus on writing features right away.

Preconfigured with

Getting Started

Create a new project using the template.

  • Note: the command will fail if you have the global legacy react-native-cli installed. Make sure you uninstall it first. More info at react-native-community/cli.

RN 0.62.2

$ npx react-native init MyApp --template @osamaq/react-native-template

Optional Steps

Connect To Sentry

This template comes with Sentry, but its disabled until you connect your account. It also comes with a custom middleware for Redux. What the middleware does is add your redux action types as breadcrumbs to Sentry's crash logs for easier debugging. It does not log payloads, which you might wish do if your app's networking activity is lightweight.

Logo

To connect your account:

$ cd MyApp/

# For MacOS
$ npx sentry-wizard -i reactNative -p ios android

# Other Platforms
$ npx sentry-wizard -i reactNative -p android

Insert your sentry DSN in each .env file (dev, staging and production) and you're all done.

About

A minimal template with architecture and boilerplate to let you focus on writing features right away.

https://www.npmjs.com/package/@osamaq/react-native-template

License:MIT License


Languages

Language:TypeScript 47.2%Language:Ruby 21.5%Language:JavaScript 13.1%Language:Java 9.8%Language:Objective-C 7.1%Language:Starlark 0.8%Language:C 0.5%