|
@@ -1,27 +0,0 @@
|
1
|
|
-package com.reactnativecommunity.webview;
|
2
|
|
-
|
3
|
|
-import com.facebook.react.ReactPackage;
|
4
|
|
-import com.facebook.react.bridge.JavaScriptModule;
|
5
|
|
-import com.facebook.react.bridge.NativeModule;
|
6
|
|
-import com.facebook.react.bridge.ReactApplicationContext;
|
7
|
|
-import com.facebook.react.uimanager.ViewManager;
|
8
|
|
-
|
9
|
|
-import java.util.Collections;
|
10
|
|
-import java.util.List;
|
11
|
|
-
|
12
|
|
-public class RNCWebViewPackage implements ReactPackage {
|
13
|
|
- @Override
|
14
|
|
- public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
15
|
|
- return Collections.singletonList(new RNCWebViewModule(reactContext));
|
16
|
|
- }
|
17
|
|
-
|
18
|
|
- // Deprecated from RN 0.47
|
19
|
|
- public List<Class<? extends JavaScriptModule>> createJSModules() {
|
20
|
|
- return Collections.emptyList();
|
21
|
|
- }
|
22
|
|
-
|
23
|
|
- @Override
|
24
|
|
- public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
25
|
|
- return Collections.singletonList(new RNCWebViewManager());
|
26
|
|
- }
|
27
|
|
-}
|