This repository is to build mobile app using react native framework. Each project within this repository will be treated as independent project so that teams can work without issues. There will be another project to consolidate the code at later stage.
This repository contains react native code as set of projects like authentication.
- Install Android SDK (either install Android Studio or just the sdk)
- If you don't want to use Android Studio, Install Atom
- Install Nuclide pakcage on Atom for debugging.
- Install Xocde for iOS devices.
- Enable development mode in the mobile device. note: Refer wiki pages for more details
In simple way, try this from your terminal:
- export ANDROID_HOME= /usr/local/Android/sdk
- git clone https://github.com/onlinepractice/react-native
- check the android sdk location in Android Studio -> SDK Manager and make appropriate changes.
- Check the file local.properties under anroid folder and make appropriate changes for the line sdk.dir=/usr/local/Android/sdk. note: *refer wiki page for more detail.s
- go to the react native project location (in this case 'path to clone this project/authentication folder')
- run 'npm install'
- run 'react-native run-andoird' for android device
- run 'react-native run-andoird' for iOS device
- go to project location (in this case 'path to clone this project/authentication folder')
- execute command -> npm run <script name> (just execute npm run on terminal) 2.1. npm run set-env (to set the environment like $ANDROID_HOME, $PATH) 2.2. npm runrun-android (to install node modules and execute command react-native run-android) 2.3. npm runrun-android-with-bundle (to install android bundle node modules and execute command react-native run-android) 2.4. npm run run-ios (to install node modules and execute command react-native run-android)
- Scripts available in authentication via
npm run-script
: 3.1. start react-native-scripts start 3.2. test node node_modules/jest/bin/jest.js --watch
available via npm run-script
:
3.3. eject
react-native-scripts eject
3.4 android
react-native-scripts android
3.5 ios
react-native-scripts ios
- Sanjeev Vaishya
- Piyush Gupta