dbene / native-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

findme-react-native

A Softwareproject done at Fh Minden in 2016

Project setup (Windows)

Prerequisites

To install react-native run the following:

npm install -g react-native
More on installation

You need some packages of the Android SDK to build the App. To download those, start the SDK Manager (SDK Manager.exe) from the SDK folder or from within Android Studio (Configure -> SDK Manager).
The following packages are needed:

  • build-tools 23.0.1
  • latest SDK Tools
  • latest SDK Plattform-tools
  • Android 6.0 SDK Platform
  • Android Support Repository
  • Android Support Library
  • Google Repository
  • Google USB Driver (If needed)

Cloning and running

Clone the project by running the command:

git clone *your repo url*

Then go into the newly created folder (cd) and run:

npm install

This downloads all the needed dependencies.

Before running you have to tell Gradle (The build-system of Android) where to look for the Android SDK. To do so, go into the android folder and create a file named local.properties. Add sdk.dir=C:\\Path\\To\\The\\SDK.

You also need to setup ADB. (Android Debug Bridge) On your Phone, activate the developer settings and check ADB Debugging. On your computer you need to add ADB to your PATH.

To run the Application on your phone: open a second terminal, go into the project folder and run:

react-native start

From the first terminal you can then run:

react-native run-android

It might happen that you get an error screen on first launch. To fix this run the following:

adb reverse tcp:8081 tcp:8081

About


Languages

Language:JavaScript 97.8%Language:Python 1.2%Language:Java 0.9%