Skip to content

Commit

Permalink
fix: android issues
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Sep 15, 2024
1 parent 7b46a07 commit 0746c4c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 89 deletions.
Binary file not shown.
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
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 {
Expand Down Expand Up @@ -60,7 +61,7 @@ public boolean deleteSurroundingText(int beforeLength, int afterLength) {
}

@Override
public RNCWebView createViewInstance(ThemedReactContext reactContext) {
public RNCWebViewWrapper createViewInstance(ThemedReactContext reactContext) {
return super.createViewInstance(reactContext, new CustomWebView(reactContext));
}

Expand All @@ -69,7 +70,6 @@ public String getName() {
return REACT_CLASS;
}

@Override
protected void addEventEmitters(ThemedReactContext reactContext, RNCWebView view) {
view.setWebViewClient(new CustomWebViewClient());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public void onCreate() {
// 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 {
/*
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"react-native-privacy-snapshot": "standardnotes/react-native-privacy-snapshot#653e904c90fc6f2b578da59138f2bfe5d7f942fe",
"react-native-share": "^9.4.1",
"react-native-version-info": "^1.1.1",
"react-native-webview": "13.6.3",
"react-native-webview": "13.12.2",
"typescript": "*"
},
"engines": {
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7905,7 +7905,7 @@ __metadata:
react-native-share: ^9.4.1
react-native-store-review: ^0.4.1
react-native-version-info: ^1.1.1
react-native-webview: 13.6.3
react-native-webview: 13.12.2
typescript: "*"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -14589,13 +14589,6 @@ __metadata:
languageName: node
linkType: hard

"escape-string-regexp@npm:2.0.0, escape-string-regexp@npm:^2.0.0":
version: 2.0.0
resolution: "escape-string-regexp@npm:2.0.0"
checksum: 9f8a2d5743677c16e85c810e3024d54f0c8dea6424fad3c79ef6666e81dd0846f7437f5e729dfcdac8981bc9e5294c39b4580814d114076b8d36318f46ae4395
languageName: node
linkType: hard

"escape-string-regexp@npm:5.0.0, escape-string-regexp@npm:^5.0.0":
version: 5.0.0
resolution: "escape-string-regexp@npm:5.0.0"
Expand All @@ -14610,6 +14603,13 @@ __metadata:
languageName: node
linkType: hard

"escape-string-regexp@npm:^2.0.0":
version: 2.0.0
resolution: "escape-string-regexp@npm:2.0.0"
checksum: 9f8a2d5743677c16e85c810e3024d54f0c8dea6424fad3c79ef6666e81dd0846f7437f5e729dfcdac8981bc9e5294c39b4580814d114076b8d36318f46ae4395
languageName: node
linkType: hard

"escape-string-regexp@npm:^4.0.0":
version: 4.0.0
resolution: "escape-string-regexp@npm:4.0.0"
Expand Down Expand Up @@ -23809,16 +23809,16 @@ __metadata:
languageName: node
linkType: hard

"react-native-webview@npm:13.6.3":
version: 13.6.3
resolution: "react-native-webview@npm:13.6.3"
"react-native-webview@npm:13.12.2":
version: 13.12.2
resolution: "react-native-webview@npm:13.12.2"
dependencies:
escape-string-regexp: 2.0.0
escape-string-regexp: ^4.0.0
invariant: 2.2.4
peerDependencies:
react: "*"
react-native: "*"
checksum: 3bfe952153ba25ced17b2783f686c26cdfd7d9de0ad3a99b953fc616f1b87624172cc39ebeec3b7c213b781d709a3ae5ea0313b4dce5cb0bbdafcf6a478d64f4
checksum: d84b2e2e75dc484eb40f8e285607b9686693f2d31e95802e2b358dc0820bcc294b438a77174eba157c31d95675c962c61c94885629af999416ad1355e9618fe0
languageName: node
linkType: hard

Expand Down

0 comments on commit 0746c4c

Please sign in to comment.