|
24 | 24 | StyleSheet,
|
25 | 25 | Text,
|
26 | 26 | View,
|
| 27 | + WebView, |
27 | 28 | requireNativeComponent,
|
28 | 29 | PropTypes,
|
29 | 30 | UIManager,
|
@@ -94,87 +95,7 @@ var WebViewBridge = React.createClass({
|
94 | 95 | },
|
95 | 96 |
|
96 | 97 | propTypes: {
|
97 |
| - ...View.propTypes, |
98 |
| - url: PropTypes.string, |
99 |
| - html: PropTypes.string, |
100 |
| - /** |
101 |
| - * Function that returns a view to show if there's an error. |
102 |
| - */ |
103 |
| - renderError: PropTypes.func, // view to show if there's an error |
104 |
| - /** |
105 |
| - * Function that returns a loading indicator. |
106 |
| - */ |
107 |
| - renderLoading: PropTypes.func, |
108 |
| - /** |
109 |
| - * Invoked when load finish |
110 |
| - */ |
111 |
| - onLoad: PropTypes.func, |
112 |
| - /** |
113 |
| - * Invoked when load either succeeds or fails |
114 |
| - */ |
115 |
| - onLoadEnd: PropTypes.func, |
116 |
| - /** |
117 |
| - * Invoked on load start |
118 |
| - */ |
119 |
| - onLoadStart: PropTypes.func, |
120 |
| - /** |
121 |
| - * Invoked when load fails |
122 |
| - */ |
123 |
| - onError: PropTypes.func, |
124 |
| - /** |
125 |
| - * @platform ios |
126 |
| - */ |
127 |
| - bounces: PropTypes.bool, |
128 |
| - /** |
129 |
| - * @platform ios |
130 |
| - */ |
131 |
| - scrollEnabled: PropTypes.bool, |
132 |
| - automaticallyAdjustContentInsets: PropTypes.bool, |
133 |
| - contentInset: EdgeInsetsPropType, |
134 |
| - onNavigationStateChange: PropTypes.func, |
135 |
| - startInLoadingState: PropTypes.bool, // force WebView to show loadingView on first load |
136 |
| - style: View.propTypes.style, |
137 |
| - |
138 |
| - /** |
139 |
| - * Used on Android only, JS is enabled by default for WebView on iOS |
140 |
| - * @platform android |
141 |
| - */ |
142 |
| - javaScriptEnabled: PropTypes.bool, |
143 |
| - |
144 |
| - /** |
145 |
| - * Used on Android only, controls whether DOM Storage is enabled or not |
146 |
| - * @platform android |
147 |
| - */ |
148 |
| - domStorageEnabled: PropTypes.bool, |
149 |
| - |
150 |
| - /** |
151 |
| - * Sets the JS to be injected when the webpage loads. |
152 |
| - */ |
153 |
| - injectedJavaScript: PropTypes.string, |
154 |
| - |
155 |
| - /** |
156 |
| - * Sets whether the webpage scales to fit the view and the user can change the scale. |
157 |
| - * @platform ios |
158 |
| - */ |
159 |
| - scalesPageToFit: PropTypes.bool, |
160 |
| - |
161 |
| - /** |
162 |
| - * Allows custom handling of any webview requests by a JS handler. Return true |
163 |
| - * or false from this method to continue loading the request. |
164 |
| - * @platform ios |
165 |
| - */ |
166 |
| - onShouldStartLoadWithRequest: PropTypes.func, |
167 |
| - |
168 |
| - /** |
169 |
| - * Determines whether HTML5 videos play inline or use the native full-screen |
170 |
| - * controller. |
171 |
| - * default value `false` |
172 |
| - * **NOTE** : "In order for video to play inline, not only does this |
173 |
| - * property need to be set to true, but the video element in the HTML |
174 |
| - * document must also include the webkit-playsinline attribute." |
175 |
| - * @platform ios |
176 |
| - */ |
177 |
| - allowsInlineMediaPlayback: PropTypes.bool, |
| 98 | + ...WebView.propTypes, |
178 | 99 |
|
179 | 100 | /**
|
180 | 101 | * Will be called once the message is being sent from webview
|
|
0 commit comments