Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this module supported for react-native 0.60.4([CRAWKWebView webView:decidePolicyForNavigationAction:decisionHandler:] in libreact-native-wkwebview.a(CRAWKWebView.o)) #235

Open
srichallamalla935 opened this issue Sep 11, 2019 · 1 comment

Comments

@srichallamalla935
Copy link

srichallamalla935 commented Sep 11, 2019

I am running sample application. I installed this module using npm install react-native-wkwebview-reborn and i linked using pods like pod install but i am getting below error in Xcode.

[CRAWKWebView webView:decidePolicyForNavigationAction:decisionHandler:] in libreact-native-wkwebview.a(CRAWKWebView.o)

Versions

react-native:0.60.4
react-native-wkwebview-reborn-2.0.0

Screenshoot

Screen Shot 2019-09-11 at 1 12 10 PM

@srichallamalla935 srichallamalla935 changed the title Is this module supported for pods or react-native 0.60.4([CRAWKWebView webView:decidePolicyForNavigationAction:decisionHandler:] in libreact-native-wkwebview.a(CRAWKWebView.o)) Is this module supported for react-native 0.60.4([CRAWKWebView webView:decidePolicyForNavigationAction:decisionHandler:] in libreact-native-wkwebview.a(CRAWKWebView.o)) Sep 11, 2019
@woshi82
Copy link

woshi82 commented Sep 15, 2019

I have found RCTJSNavigationScheme was defined in [email protected]
node_modules/react-native/React/Views/RCTWebView.m
line 20
NSString *const RCTJSNavigationScheme = @"react-js-navigation";

Obviously, it has removed in [email protected]. Redefine it in wkwebview temporarily.

// extern NSString *const RCTJSNavigationScheme;  
NSString *const RCTJSNavigationScheme = @"react-js-navigation";

maxkomarychev added a commit to khealth/react-native-wkwebview that referenced this issue Sep 18, 2019
Redefine constant that was originaly taken from `RCTWebView`
implementation: CRAlpha#235 (comment)
lukecyca added a commit to craftmetrics/react-native-wkwebview that referenced this issue Dec 19, 2019
Define RCTJSNavigationScheme per CRAlpha#235
esbrain added a commit to esbrain/react-native-wkwebview that referenced this issue Jul 23, 2020
fix RCTJSNavigationScheme problem.
see CRAlpha#235
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants