Pārlūkot izejas kodu

DOCS: Fixed android installation (#1601)

Brais Piñeiro 7 gadus atpakaļ
vecāks
revīzija
97b421dc21
1 mainītis faili ar 5 papildinājumiem un 10 dzēšanām
  1. 5
    10
      README.md

+ 5
- 10
README.md Parādīt failu

@@ -140,7 +140,7 @@ NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBun
140 140
 
141 141
 	```groovy
142 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 146
 3. Update project dependencies in `android/app/build.gradle`.
@@ -159,14 +159,14 @@ NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBun
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 164
 	This file can be located in `android/app/src/main/java/com/yourproject/`.
165 165
 
166 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,15 +192,10 @@ NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBun
192 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 200
 6. Update `AndroidManifest.xml` and set **android:name** value to `.MainApplication`
206 201
 	```xml