mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 19:51:10 +00:00
28 lines
885 B
Java
28 lines
885 B
Java
package com.reactnativecommunity.webview;
|
|
|
|
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.Collections;
|
|
import java.util.List;
|
|
|
|
public class RNCWebViewPackage implements ReactPackage {
|
|
@Override
|
|
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
return Collections.singletonList(new RNCWebViewModule(reactContext));
|
|
}
|
|
|
|
// Deprecated from RN 0.47
|
|
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
@Override
|
|
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
return Collections.singletonList(new RNCWebViewManager());
|
|
}
|
|
}
|