package com.reactnativenavigation.react;

import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class NavigationPackage implements ReactPackage {

	private ReactNativeHost reactNativeHost;

	public NavigationPackage(final ReactNativeHost reactNativeHost) {
		this.reactNativeHost = reactNativeHost;
	}

	@Override
	public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
		return Arrays.<NativeModule>asList(
				new NavigationModule(reactContext, reactNativeHost.getReactInstanceManager())
		);
	}

	public List<Class<? extends JavaScriptModule>> createJSModules() {
		return Collections.emptyList();
	}

	@Override
	public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
		return Collections.emptyList();
	}
}

@@ -122,59 +122,8 @@
 ge;%0A
-import com.facebook.react.bridge.JavaScriptModule;%0A
 impo
@@ -165,16 +165,16 @@
 Module;%0A
+
 import c
@@ -277,33 +277,8 @@
 r;%0A%0A
-import java.util.Arrays;%0A
 impo
@@ -429,16 +429,54 @@
 Host;%0A%0A%09
+@SuppressWarnings(%22WeakerAccess%22)%0A    
 public N
@@ -690,41 +690,34 @@
 urn 
-Arrays.%3CNativeModule%3EasList(%0A%09%09%09%09
+Collections.singletonList(
 new 
@@ -793,117 +793,8 @@
 r())
-%0A%09%09);%0A%09%7D%0A%0A%09public List%3CClass%3C? extends JavaScriptModule%3E%3E createJSModules() %7B%0A%09%09return Collections.emptyList(
 );%0A%09

Drop RN 0.46 support