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:
Eric Dvorsak 2017-12-15 10:58:28 +01:00 committed by Roman Volosovskyi
parent 5ac2043b14
commit 846acf6708

View File

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