Skip to content

trixtateam/react-native-boiler-plate

Repository files navigation

react native boilerplate banner


GitHub Release Date GitHub last commit GitHub commit activity GitHub commits since latest release GitHub top language

Start your next react native project in seconds



Created by Jacques Nel.
Integrating React Native with Phoenix Channels

Features

Quick scaffolding
Create components, containers, navigators, selectors and sagas - and their tests - right from the CLI!
Instant feedback
Enjoy the best DX (Developer eXperience) and code your app at the speed of thought! Your saved changes to the styles and JS are reflected instantaneously without refreshing the app. Preserve application state even when you update something in the underlying code!
Predictable state management
Unidirectional data flow allows for change logging and time travel debugging.
Next generation JavaScript
Use template strings, object destructuring, arrow functions, JSX syntax and more.
Redux Integration
Use template strings, object destructuring, arrow functions, JSX syntax and more.
Redux Saga Integration
Executing logic in an asynchronous way without ending in callback hell. Sagas are triggered by Redux actions and can also trigger Redux actions to alter state. By using JavaScript generators (`yield`), sagas are written in a synchronous-like manner while still executing asynchronously.

Quick start

  1. Make sure that you have Node.js v8.10 and npm v5 or above installed.
  2. Follow the getting started guide
  3. Clone this repo using git clone --depth=1 https://github.com/trixtateam/react-native-boiler-plate.git <YOUR_PROJECT_NAME>
  4. Move to the appropriate directory: cd <YOUR_PROJECT_NAME>.
  5. Run npm run install in order to install dependencies and clean the git repo.

Android

  • only the first time you run the project, you need to generate a debug key with:
    • cd android/app
    • keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
    • cd ../.. to come back to the root folder
  • npm run start to start the metro bundler, in a dedicated terminal
  • npm run android to run the Android application (remember to start a simulator or connect an Android phone)

iOS

  • cd ios
  • pod install to install pod dependencies
  • cd .. to come back to the root folder
  • npm run start to start the metro bundler, in a dedicated terminal
  • npm run ios to run the iOS application (remember to start a simulator or connect an iPhone phone)

Now you're ready to rumble!

Documentation

Supporters

License

This project is licensed under the MIT license, Copyright (c) 2019 Jacques Nel. For more information see LICENSE.md.