From 846acf6708b0aa4d34a1a1a28e5f450d53260a94 Mon Sep 17 00:00:00 2001 From: Eric Dvorsak Date: Fri, 15 Dec 2017 10:58:28 +0100 Subject: [PATCH] Fixes for react-native 0.49 (#9) * remove override depreacted in react-native 0.47 * fix weaker access priviledges on dispatchEvent method * fix prop-types and create-class * [fix] remove deprecated proptype import for iOS * fix undefined is not an object (evaluating 'i.View.propTypes.style') --- webview-bridge/index.ios.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webview-bridge/index.ios.js b/webview-bridge/index.ios.js index 2ca962c..b55425d 100644 --- a/webview-bridge/index.ios.js +++ b/webview-bridge/index.ios.js @@ -9,7 +9,8 @@ import ReactNative, { View, NativeModules, Text, - ActivityIndicatorIOS + ActivityIndicatorIOS, + ViewPropTypes } from 'react-native'; var createReactClass = require('create-react-class'); @@ -81,7 +82,7 @@ var WKWebView = createReactClass({ NavigationType: NavigationType, }, propTypes: { - ...View.propTypes, + ...ViewPropTypes, html: deprecatedPropType( PropTypes.string, @@ -178,7 +179,7 @@ var WKWebView = createReactClass({ onNavigationStateChange: PropTypes.func, scalesPageToFit: PropTypes.bool, startInLoadingState: PropTypes.bool, - style: View.propTypes.style, + style: ViewPropTypes.style, /** * Sets the JS to be injected when the webpage loads. */