Browse Source

DOCS: Fixed android installation (#1601)

Brais Piñeiro 7 years ago
parent
commit
97b421dc21
1 changed files with 5 additions and 10 deletions
  1. 5
    10
      README.md

+ 5
- 10
README.md View File

140
 
140
 
141
 	```groovy
141
 	```groovy
142
 	include ':react-native-navigation'
142
 	include ':react-native-navigation'
143
-	project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-	navigation/lib/android/app/')
143
+	project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/lib/android/app/')
144
 	```
144
 	```
145
 
145
 
146
 3. Update project dependencies in `android/app/build.gradle`.
146
 3. Update project dependencies in `android/app/build.gradle`.
159
 	}
159
 	}
160
 	```
160
 	```
161
 
161
 
162
-4. In `MainActivity.java` it should extend `com.reactnativenavigation.controllers.SplashActivity` instead of `ReactActivity`.
162
+4. In `MainActivity.java` it should extend `com.reactnativenavigation.NavigationActivity` instead of `ReactActivity`.
163
 
163
 
164
 	This file can be located in `android/app/src/main/java/com/yourproject/`.
164
 	This file can be located in `android/app/src/main/java/com/yourproject/`.
165
 
165
 
166
 	```java
166
 	```java
167
-	import com.reactnativenavigation.controllers.SplashActivity;
167
+	import com.reactnativenavigation.NavigationActivity;
168
 
168
 
169
-	public class MainActivity extends SplashActivity {
169
+	public class MainActivity extends NavigationActivity {
170
 
170
 
171
 	}
171
 	}
172
 	```
172
 	```
192
 				// eg. new VectorIconsPackage()
192
 				// eg. new VectorIconsPackage()
193
 			);
193
 			);
194
 		}
194
 		}
195
-
196
-		@Override
197
-		public List<ReactPackage> createAdditionalReactPackages() {
198
-			return getPackages();
199
-		}
200
 	}
195
 	}
201
 	```
196
 	```
202
 
197
 
203
-	Make sure that `isDebug` and `createAdditionalReactPackages` methods are implemented.
198
+	Make sure that `isDebug` methods is implemented.
204
 
199
 
205
 6. Update `AndroidManifest.xml` and set **android:name** value to `.MainApplication`
200
 6. Update `AndroidManifest.xml` and set **android:name** value to `.MainApplication`
206
 	```xml
201
 	```xml