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. */