11var React = require ( 'react-native' ) ;
2- var { requireNativeComponent } = React ;
2+ var {
3+ requireNativeComponent,
4+ PropTypes
5+ } = React ;
36
47class WKWebView extends React . Component {
58 render ( ) {
@@ -8,20 +11,29 @@ class WKWebView extends React.Component {
811}
912
1013WKWebView . propTypes = {
11- url : React . PropTypes . string ,
12- baseURL : React . PropTypes . string ,
13- html : React . PropTypes . string ,
14+ source : PropTypes . oneOfType ( [
15+ PropTypes . shape ( {
16+ uri : PropTypes . string ,
17+ method : PropTypes . string ,
18+ headers : PropTypes . object ,
19+ body : PropTypes . string ,
20+ } ) ,
21+ PropTypes . shape ( {
22+ html : PropTypes . string ,
23+ baseUrl : PropTypes . string ,
24+ } ) ,
25+ ] ) ,
1426
15- onLoadingStart : React . PropTypes . func ,
16- onLoadingFinish : React . PropTypes . func ,
17- onLoadingError : React . PropTypes . func ,
27+ onLoadingStart : PropTypes . func ,
28+ onLoadingFinish : PropTypes . func ,
29+ onLoadingError : PropTypes . func ,
1830
19- automaticallyAdjustContentInsets : React . PropTypes . bool ,
20- contentInset : React . PropTypes . shape ( {
21- top : React . PropTypes . number ,
22- left : React . PropTypes . number ,
23- bottom : React . PropTypes . number ,
24- right : React . PropTypes . number
31+ automaticallyAdjustContentInsets : PropTypes . bool ,
32+ contentInset : PropTypes . shape ( {
33+ top : PropTypes . number ,
34+ left : PropTypes . number ,
35+ bottom : PropTypes . number ,
36+ right : PropTypes . number
2537 } ) ,
2638} ;
2739
0 commit comments