Skip to content

A simple and scalable boiler plate code for React Native App using React Native Navigation by WiX and Saga .

Notifications You must be signed in to change notification settings

vidukapoor/react-native-app-boilerplate

 
 

Repository files navigation

react-native-navigation-bootstrap

Clone this repository to start a project based on

"react-native": "0.51.1",
"react": "^16.3.0-alpha.1",
"react-native-navigation": "^2.0.0",
"react-native-ui-lib": "^3.3.32"

Check react-native-navigation's documentation for usage details.

preparing your project

Download npm dependencies:

npm i -g react-native-cli
npm install

Renaming the project

If you would like to rename the project you can use React Native Rename

After running React Native Rename, in order to run the project successfully, you will need to manually update your app name in src/screens.js, where <appname> is the name of your app.

-  Navigation.registerComponent('reactNativeInit.App', () => App);
+  Navigation.registerComponent('<appname>.App', () => App);

Running your project

From project dir, run:

iOS

  1. Run the packager

    npm run start
    
  2. Open the project in xcode from ios/reactNativeInit.xcodeproj

  3. Build and run from Xcode

Android

  1. Start an emulator

  2. Build and run

    react-native run-android

    This would also start a packager if not already started

  3. Set your Emulator to live reload changes +m (cmd+m) => Enable Hot Reloading

To open packager manually, from project dir run:

react-native start

LICENSE

The MIT License (MIT)

Copyright (c) 2018 Trinadh Koya

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:**

About

A simple and scalable boiler plate code for React Native App using React Native Navigation by WiX and Saga .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 89.8%
  • Objective-C 5.6%
  • C++ 3.5%
  • C 0.6%
  • JavaScript 0.5%
  • Python 0.0%