|
@@ -85,7 +85,7 @@ For example, this package replaces the native [NavigatorIOS](https://facebook.gi
|
85
|
85
|
...
|
86
|
86
|
/>
|
87
|
87
|
```
|
88
|
|
-5. Implement `isDebug` and `createAdditionalReactPackages`
|
|
88
|
+5. Implement `isDebug` and `createAdditionalReactPackages` methods
|
89
|
89
|
|
90
|
90
|
```java
|
91
|
91
|
import com.reactnativenavigation.NavigationApplication;
|
|
@@ -94,6 +94,7 @@ For example, this package replaces the native [NavigatorIOS](https://facebook.gi
|
94
|
94
|
|
95
|
95
|
@Override
|
96
|
96
|
public boolean isDebug() {
|
|
97
|
+ // Make sure you are using BuildConfig from your own application
|
97
|
98
|
return BuildConfig.DEBUG;
|
98
|
99
|
}
|
99
|
100
|
|
|
@@ -108,10 +109,10 @@ For example, this package replaces the native [NavigatorIOS](https://facebook.gi
|
108
|
109
|
```
|
109
|
110
|
|
110
|
111
|
## Migrating to version 2.0
|
111
|
|
-Migrating your code base to version 2.0 will require a few changes to your native Java code. The actual navigation API has not changes so there will be no changes to your JS code base.
|
|
112
|
+Migrating your code base to version 2.0 will require a few changes to your native Java code. The actual navigation API has not changed so there will be no changes to your JS code base.
|
112
|
113
|
|
113
|
114
|
* Your `MainActivity` should now extend `com.reactnativenavigation.controllers.SplashActivity`
|
114
|
|
-* Delete the `getPackages()` method if you've overridden it in `MainActivity`. Don't forget to delete unused imports after this step.
|
|
115
|
+* Delete the `getPackages()` from `MainActivity`. Don't forget to delete unused imports after this step.
|
115
|
116
|
* Create a custom Application class and update the `Application` element in `AndroidManifest.xml`
|
116
|
117
|
|
117
|
118
|
```java
|
|
@@ -137,6 +138,7 @@ Migrating your code base to version 2.0 will require a few changes to your nativ
|
137
|
138
|
|
138
|
139
|
@Override
|
139
|
140
|
public boolean isDebug() {
|
|
141
|
+ // Make sure you are using BuildConfig from your own application
|
140
|
142
|
return BuildConfig.DEBUG;
|
141
|
143
|
}
|
142
|
144
|
|