Pārlūkot izejas kodu

Update README.md

Add Android installation instruction
Guy Carmeli 8 gadus atpakaļ
vecāks
revīzija
d73b0f7f04
1 mainītis faili ar 26 papildinājumiem un 1 dzēšanām
  1. 26
    1
      README.md

+ 26
- 1
README.md Parādīt failu

@@ -44,7 +44,32 @@ For example, this package replaces the native [NavigatorIOS](https://facebook.gi
44 44
 
45 45
 ## Installation - Android
46 46
 
47
-Coming soon, not yet supported
47
+ >Note: Android adaptation is still under active development therfore the API might break from time to time. 
48
+ 
49
+1.  Add the following to your `settings.gradle` file located in the `android` folder:
50
+
51
+	```groovy
52
+	include ':react-native-navigation'
53
+	project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/android/app/')
54
+	```
55
+	
56
+2. Update project dependencies in `build.gradle`
57
+
58
+	```groovy
59
+	dependencies {
60
+	    compile fileTree(dir: "libs", include: ["*.jar"])
61
+	    compile "com.android.support:appcompat-v7:23.0.1"
62
+	    compile "com.facebook.react:react-native:+"
63
+	    debugCompile project(path: ':react-native-navigation', configuration: 'libraryDebug')
64
+	    releaseCompile project(path: ':react-native-navigation', configuration: 'libraryRelease')
65
+}
66
+```
67
+
68
+3. Have your `MainActivity.java` extend `com.reactnativenavigation.activities.RootActivity`. 
69
+`RootActivity` is used as a proxy activity to start your actuall app.
70
+
71
+	The only method you might need to override is `getPackages()`, make sure you add `RnnPackage` as well.
72
+
48 73
 
49 74
 ## Usage
50 75