Skip to content

GLiBogor/kelasglib-react-native

 
 

Repository files navigation

Kelas React Native

This repository contains React Native example app from Kelas GLiB that held at Rumah Btech (previously with Abraincode at Keboencoding

Presentation slide

Please download here.

Some lines of code also explained in comments.

Requirements

  • 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

Simple HTTP API Server

Preparation

  • Setup environment variable correctly for JAVA_HOME and ANDROID_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.

Deploy

  • 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.

Build an installable APK file

You need to sign the APK. Please consult the official documentation.

TODO

  • Step by step tutorial

Screenshot

alt text alt text

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.2%
  • Objective-C 22.0%
  • Python 8.2%
  • Java 6.6%