diff --git a/README.md b/README.md index 2c015b10..89fda87b 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ React Native comes with [WebView](http://facebook.github.io/react-native/docs/we ### Install -1. Install from npm (note the postfix in the package name): `npm install react-native-wkwebview-reborn` -2. run `react-native link react-native-wkwebview-reborn` +1. Install from npm (note the postfix in the package name): `npm install react-native-wkwebview-reborn react-native-webview` +2. run `cd ios && pod install` **Manual alternative** diff --git a/WKWebView.android.js b/WKWebView.android.js index 31b329a2..08386f02 100644 --- a/WKWebView.android.js +++ b/WKWebView.android.js @@ -2,6 +2,6 @@ import { WebView, -} from 'react-native'; +} from 'react-native-webview'; export default WebView; diff --git a/ios/RCTWKWebView/CRAWKWebView.m b/ios/RCTWKWebView/CRAWKWebView.m index fdc27ce3..e318131a 100644 --- a/ios/RCTWKWebView/CRAWKWebView.m +++ b/ios/RCTWKWebView/CRAWKWebView.m @@ -14,15 +14,17 @@ #import +NSString *const RCTJSNavigationScheme = @"react-js-navigation"; + // runtime trick to remove WKWebView keyboard default toolbar // see: http://stackoverflow.com/questions/19033292/ios-7-uiwebview-keyboard-issue/19042279#19042279 @interface _SwizzleHelperWK : NSObject @end -@implementation _SwizzleHelperWK --(id)inputAccessoryView -{ - return nil; -} -@end +// @implementation _SwizzleHelperWK +// -(id)inputAccessoryView +// { +// return nil; +// } +// @end @interface CRAWKWebView () diff --git a/package.json b/package.json index 97f3bf63..d6274e03 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,9 @@ "name": "react-native-wkwebview-reborn", "optionalDependencies": {}, "peerDependencies": { + "react": "*", + "react-native": ">= 0.59.0", + "react-native-webview": "^5.4.0", "prop-types": "^15.6.0" }, "pre-push#master": [