|
@@ -168,6 +168,15 @@ class WebView extends React.Component<WebViewSharedProps, State> {
|
168
|
168
|
'The allowsBackForwardNavigationGestures property is not supported when useWebKit = false',
|
169
|
169
|
);
|
170
|
170
|
}
|
|
171
|
+
|
|
172
|
+ if (
|
|
173
|
+ !this.props.useWebKit &&
|
|
174
|
+ this.props.incognito
|
|
175
|
+ ) {
|
|
176
|
+ console.warn(
|
|
177
|
+ 'The incognito property is not supported when useWebKit = false',
|
|
178
|
+ );
|
|
179
|
+ }
|
171
|
180
|
}
|
172
|
181
|
|
173
|
182
|
render() {
|
|
@@ -252,6 +261,7 @@ class WebView extends React.Component<WebViewSharedProps, State> {
|
252
|
261
|
}
|
253
|
262
|
hideKeyboardAccessoryView={this.props.hideKeyboardAccessoryView}
|
254
|
263
|
allowsBackForwardNavigationGestures={this.props.allowsBackForwardNavigationGestures}
|
|
264
|
+ incognito={this.props.incognito}
|
255
|
265
|
userAgent={this.props.userAgent}
|
256
|
266
|
onLoadingStart={this._onLoadingStart}
|
257
|
267
|
onLoadingFinish={this._onLoadingFinish}
|
|
@@ -443,6 +453,7 @@ class WebView extends React.Component<WebViewSharedProps, State> {
|
443
|
453
|
}
|
444
|
454
|
|
445
|
455
|
this._showRedboxOnPropChanges(prevProps, 'allowsInlineMediaPlayback');
|
|
456
|
+ this._showRedboxOnPropChanges(prevProps, 'incognito');
|
446
|
457
|
this._showRedboxOnPropChanges(prevProps, 'mediaPlaybackRequiresUserAction');
|
447
|
458
|
this._showRedboxOnPropChanges(prevProps, 'dataDetectorTypes');
|
448
|
459
|
|