Browse Source

Reverting to public (#3146)

We need this constructor to be accessible in order to integrate with CodePush
andresesfm 6 years ago
parent
commit
cba7d1796b

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/react/ReactGateway.java View File

19
 		this(application, isDebug, new NavigationReactNativeHost(application, isDebug, additionalReactPackages));
19
 		this(application, isDebug, new NavigationReactNativeHost(application, isDebug, additionalReactPackages));
20
 	}
20
 	}
21
 
21
 
22
-	private ReactGateway(final Application application, final boolean isDebug, final ReactNativeHost reactNativeHost) {
22
+	public ReactGateway(final Application application, final boolean isDebug, final ReactNativeHost reactNativeHost) {
23
 		SoLoader.init(application, false);
23
 		SoLoader.init(application, false);
24
 		this.reactNativeHost = reactNativeHost;
24
 		this.reactNativeHost = reactNativeHost;
25
 		initializer = new NavigationReactInitializer(reactNativeHost.getReactInstanceManager(), isDebug);
25
 		initializer = new NavigationReactInitializer(reactNativeHost.getReactInstanceManager(), isDebug);