chore: upgrade react native (#2885)
* chore: upgrade react native * fix: android issues * iOS changes
This commit is contained in:
@@ -28,7 +28,8 @@
|
||||
android:requestLegacyExternalStorage="true"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
android:theme="@style/AppTheme"
|
||||
tools:targetApi="n">
|
||||
tools:targetApi="n"
|
||||
android:supportsRtl="true">
|
||||
|
||||
<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />
|
||||
|
||||
|
||||
@@ -6,10 +6,11 @@ import com.reactnativecommunity.webview.RNCWebViewManager;
|
||||
import com.facebook.react.uimanager.ThemedReactContext;
|
||||
import android.view.inputmethod.InputConnectionWrapper;
|
||||
import com.facebook.react.module.annotations.ReactModule;
|
||||
import com.reactnativecommunity.webview.RNCWebViewWrapper;
|
||||
|
||||
import android.view.KeyEvent;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.webkit.WebView;
|
||||
|
||||
@ReactModule(name = CustomWebViewManager.REACT_CLASS)
|
||||
public class CustomWebViewManager extends RNCWebViewManager {
|
||||
@@ -60,7 +61,7 @@ public class CustomWebViewManager extends RNCWebViewManager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public RNCWebView createViewInstance(ThemedReactContext reactContext) {
|
||||
public RNCWebViewWrapper createViewInstance(ThemedReactContext reactContext) {
|
||||
return super.createViewInstance(reactContext, new CustomWebView(reactContext));
|
||||
}
|
||||
|
||||
@@ -69,7 +70,6 @@ public class CustomWebViewManager extends RNCWebViewManager {
|
||||
return REACT_CLASS;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addEventEmitters(ThemedReactContext reactContext, RNCWebView view) {
|
||||
view.setWebViewClient(new CustomWebViewClient());
|
||||
}
|
||||
|
||||
@@ -84,7 +84,6 @@ public class MainApplication extends Application implements ReactApplication {
|
||||
// If you opted-in for the New Architecture, we load the native entry point for this app.
|
||||
DefaultNewArchitectureEntryPoint.load();
|
||||
}
|
||||
ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
|
||||
|
||||
try {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user