|
@@ -25,6 +25,7 @@ import com.facebook.react.bridge.Promise;
|
25
|
25
|
import com.facebook.react.bridge.ReactApplicationContext;
|
26
|
26
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
27
|
27
|
import com.facebook.react.bridge.ReactMethod;
|
|
28
|
+import com.facebook.react.module.annotations.ReactModule;
|
28
|
29
|
import com.facebook.react.modules.core.PermissionAwareActivity;
|
29
|
30
|
import com.facebook.react.modules.core.PermissionListener;
|
30
|
31
|
|
|
@@ -34,8 +35,9 @@ import java.util.ArrayList;
|
34
|
35
|
|
35
|
36
|
import static android.app.Activity.RESULT_OK;
|
36
|
37
|
|
|
38
|
+@ReactModule(name = RNCWebViewModule.MODULE_NAME)
|
37
|
39
|
public class RNCWebViewModule extends ReactContextBaseJavaModule implements ActivityEventListener {
|
38
|
|
-
|
|
40
|
+ public static final String MODULE_NAME = "RNCWebView";
|
39
|
41
|
private static final int PICKER = 1;
|
40
|
42
|
private static final int PICKER_LEGACY = 3;
|
41
|
43
|
private static final int FILE_DOWNLOAD_PERMISSION_REQUEST = 1;
|
|
@@ -71,7 +73,7 @@ public class RNCWebViewModule extends ReactContextBaseJavaModule implements Acti
|
71
|
73
|
|
72
|
74
|
@Override
|
73
|
75
|
public String getName() {
|
74
|
|
- return "RNCWebView";
|
|
76
|
+ return MODULE_NAME;
|
75
|
77
|
}
|
76
|
78
|
|
77
|
79
|
@ReactMethod
|