mirror of
https://github.com/status-im/react-native-webview-bridge.git
synced 2025-02-21 19:48:04 +00:00
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')
This commit is contained in:
parent
5ac2043b14
commit
846acf6708
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user