Browse Source

removed comments

Daniel Zlotin 7 years ago
parent
commit
6b93ea17cd

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

@@ -5,40 +5,13 @@ import com.reactnativenavigation.NavigationApplication;
5 5
 
6 6
 public class ReactGateway {
7 7
 
8
-//	public interface JsReloadListener {
9
-//		void onJsReload();
10
-//	}
11
-
12 8
 	private final NavigationReactNativeHost reactNativeHost;
13 9
 	private final NavigationReactInitializer initializer;
14 10
 	private final JsDevReloadHandler jsDevReloadHandler;
15 11
 
16 12
 	public ReactGateway(final NavigationApplication application, final boolean isDebug) {
17 13
 		reactNativeHost = new NavigationReactNativeHost(application, isDebug);
18
-
19
-//		DevSupportManager devSupportManager = reactNativeHost.getReactInstanceManager().getDevSupportManager();
20
-//		ReactInstanceDevCommandsHandler reactInstanceCommandsHandler = (ReactInstanceDevCommandsHandler) ReflectionUtils.getDeclaredField(devSupportManager, "mReactInstanceCommandsHandler");
21
-//		String packagerPathForJsBundle = reactNativeHost.getJSMainModuleName();
22
-//		boolean enableOnCreate = reactNativeHost.getUseDeveloperSupport();
23
-//		RedBoxHandler redBoxHandler = reactNativeHost.getRedBoxHandler();
24
-//		DevSupportManagerImpl proxy = new DevSupportManagerImpl(application, reactInstanceCommandsHandler, packagerPathForJsBundle, enableOnCreate, redBoxHandler) {
25
-//			@Override
26
-//			public void handleReloadJS() {
27
-//				super.handleReloadJS();
28
-//
29
-//
30
-//				// onJsReload
31
-//				ReactContext currentReactContext = reactNativeHost.getReactInstanceManager().getCurrentReactContext();
32
-//				if (currentReactContext != null) {
33
-//					NavigationActivity activity = (NavigationActivity) currentReactContext.getCurrentActivity();
34
-//					if (activity != null) {
35
-//						activity.reset();
36
-//					}
37
-//				}
38
-//			}
39
-//		};
40
-//		ReflectionUtils.setField(reactNativeHost.getReactInstanceManager(), "mDevSupportManager", proxy);
41
-
14
+		
42 15
 		initializer = new NavigationReactInitializer(reactNativeHost.getReactInstanceManager(), isDebug);
43 16
 		jsDevReloadHandler = new JsDevReloadHandler(reactNativeHost.getReactInstanceManager());
44 17
 	}