This repository contains React Native example app from Kelas GLiB that held at Rumah Btech (previously with Abraincode at Keboencoding
Please download here.
Some lines of code also explained in comments.
- Nodejs 6.x
- Android SDK. When you deploying for the first time, you'll be asked to fill the requirements gap (Build-tools, Android Platform SDK, Android Support Repository, etc). Install them via Android SDK.
- The versions that used when this documentation written were :
react-native 0.42.0
,react-native-cli 2.0.1
- The app depends on an API, see https://github.com/herpiko/wikipedia-featured-simple-api-example.
- Setup environment variable correctly for
JAVA_HOME
andANDROID_HOME
- Install React Native CLI globally,
npm install -g react-native-cli
- Enter the working dir then install the dependencies,
npm run install
- Prepare the emulator or device
- Change the
HOST
address to your own deployed API server.
- In other terminal session, run
react-native start
to fire packager microservice (live on port 8081). - For Android,
react-native run-android
- For iOS,
react-native run-ios
- There is Live Reload and Hot Reload feature. Setup the correct address (packager) on dev settings if you want to use them.
You need to sign the APK. Please consult the official documentation.
- Step by step tutorial