react-native-wkwebview icon indicating copy to clipboard operation
react-native-wkwebview copied to clipboard

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

Open srichallamalla935 opened this issue 5 years ago • 1 comments

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 avatar Sep 11 '19 07:09 srichallamalla935

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";

woshi82 avatar Sep 15 '19 08:09 woshi82