|
@@ -10,7 +10,6 @@ import com.facebook.react.ReactPackage;
|
10
|
10
|
import com.facebook.react.bridge.ReactContext;
|
11
|
11
|
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
|
12
|
12
|
import com.facebook.react.shell.MainReactPackage;
|
13
|
|
-import com.facebook.react.uimanager.UIImplementationProvider;
|
14
|
13
|
import com.reactnativenavigation.NavigationApplication;
|
15
|
14
|
import com.reactnativenavigation.bridge.NavigationReactEventEmitter;
|
16
|
15
|
import com.reactnativenavigation.bridge.NavigationReactPackage;
|
|
@@ -29,28 +28,7 @@ public class NavigationReactGateway implements ReactGateway {
|
29
|
28
|
private JsDevReloadHandler jsDevReloadHandler;
|
30
|
29
|
|
31
|
30
|
public NavigationReactGateway() {
|
32
|
|
- this(null);
|
33
|
|
- }
|
34
|
|
-
|
35
|
|
- public NavigationReactGateway(final UIImplementationProvider customImplProvider) {
|
36
|
|
-
|
37
|
|
- if (customImplProvider != null) {
|
38
|
|
- host = new ReactNativeHostImpl() {
|
39
|
|
- /**
|
40
|
|
- * This was added in case someone needs to provide a different UIImplementationProvider
|
41
|
|
- * @param {UIImplementationProvider} defaultProvider
|
42
|
|
- * @return {UIImplementationProvider}
|
43
|
|
- */
|
44
|
|
- @Override
|
45
|
|
- protected UIImplementationProvider getUIImplementationProvider() {
|
46
|
|
- return customImplProvider;
|
47
|
|
- }
|
48
|
|
- };
|
49
|
|
- } else {
|
50
|
|
- host = new ReactNativeHostImpl();
|
51
|
|
- }
|
52
|
|
-
|
53
|
|
-
|
|
31
|
+ host = new ReactNativeHostImpl();
|
54
|
32
|
jsDevReloadHandler = new JsDevReloadHandler();
|
55
|
33
|
}
|
56
|
34
|
|