|
@@ -2,6 +2,9 @@ package com.example;
|
2
|
2
|
|
3
|
3
|
import android.app.Application;
|
4
|
4
|
import android.content.Context;
|
|
5
|
+import android.os.Build;
|
|
6
|
+import android.webkit.WebView;
|
|
7
|
+
|
5
|
8
|
import com.facebook.react.PackageList;
|
6
|
9
|
import com.facebook.react.ReactApplication;
|
7
|
10
|
import com.facebook.react.ReactNativeHost;
|
|
@@ -44,6 +47,10 @@ public class MainApplication extends Application implements ReactApplication {
|
44
|
47
|
@Override
|
45
|
48
|
public void onCreate() {
|
46
|
49
|
super.onCreate();
|
|
50
|
+ /* https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews */
|
|
51
|
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
|
52
|
+ WebView.setWebContentsDebuggingEnabled(true);
|
|
53
|
+ }
|
47
|
54
|
SoLoader.init(this, /* native exopackage */ false);
|
48
|
55
|
initializeFlipper(this); // Remove this line if you don't want Flipper enabled
|
49
|
56
|
}
|