|
|
@@ -133,7 +133,7 @@ class WebView extends React.Component<WebViewSharedProps, State> {
|
|
133
|
133
|
|
|
134
|
134
|
static defaultProps = {
|
|
135
|
135
|
useWebKit: true,
|
|
136
|
|
- enableCache: true,
|
|
|
136
|
+ cacheEnabled: true,
|
|
137
|
137
|
originWhitelist: defaultOriginWhitelist,
|
|
138
|
138
|
useSharedProcessPool: true,
|
|
139
|
139
|
};
|
|
|
@@ -141,7 +141,7 @@ class WebView extends React.Component<WebViewSharedProps, State> {
|
|
141
|
141
|
static isFileUploadSupported = async () => {
|
|
142
|
142
|
// no native implementation for iOS, depends only on permissions
|
|
143
|
143
|
return true;
|
|
144
|
|
- }
|
|
|
144
|
+ };
|
|
145
|
145
|
|
|
146
|
146
|
state = {
|
|
147
|
147
|
viewState: this.props.startInLoadingState
|
|
|
@@ -170,10 +170,7 @@ class WebView extends React.Component<WebViewSharedProps, State> {
|
|
170
|
170
|
);
|
|
171
|
171
|
}
|
|
172
|
172
|
|
|
173
|
|
- if (
|
|
174
|
|
- !this.props.useWebKit &&
|
|
175
|
|
- this.props.incognito
|
|
176
|
|
- ) {
|
|
|
173
|
+ if (!this.props.useWebKit && this.props.incognito) {
|
|
177
|
174
|
console.warn(
|
|
178
|
175
|
'The incognito property is not supported when useWebKit = false',
|
|
179
|
176
|
);
|
|
|
@@ -255,13 +252,16 @@ class WebView extends React.Component<WebViewSharedProps, State> {
|
|
255
|
252
|
bounces={this.props.bounces}
|
|
256
|
253
|
scrollEnabled={this.props.scrollEnabled}
|
|
257
|
254
|
pagingEnabled={this.props.pagingEnabled}
|
|
|
255
|
+ cacheEnabled={this.props.cacheEnabled}
|
|
258
|
256
|
decelerationRate={decelerationRate}
|
|
259
|
257
|
contentInset={this.props.contentInset}
|
|
260
|
258
|
automaticallyAdjustContentInsets={
|
|
261
|
259
|
this.props.automaticallyAdjustContentInsets
|
|
262
|
260
|
}
|
|
263
|
261
|
hideKeyboardAccessoryView={this.props.hideKeyboardAccessoryView}
|
|
264
|
|
- allowsBackForwardNavigationGestures={this.props.allowsBackForwardNavigationGestures}
|
|
|
262
|
+ allowsBackForwardNavigationGestures={
|
|
|
263
|
+ this.props.allowsBackForwardNavigationGestures
|
|
|
264
|
+ }
|
|
265
|
265
|
incognito={this.props.incognito}
|
|
266
|
266
|
userAgent={this.props.userAgent}
|
|
267
|
267
|
onLoadingStart={this._onLoadingStart}
|