|
@@ -327,6 +327,7 @@ export interface IOSNativeWebViewProps extends CommonNativeWebViewProps {
|
327
|
327
|
injectedJavaScriptForMainFrameOnly?: boolean;
|
328
|
328
|
injectedJavaScriptBeforeContentLoadedForMainFrameOnly?: boolean;
|
329
|
329
|
onFileDownload?: (event: FileDownloadEvent) => void;
|
|
330
|
+ limitsNavigationsToAppBoundDomains?: boolean;
|
330
|
331
|
}
|
331
|
332
|
|
332
|
333
|
export interface MacOSNativeWebViewProps extends CommonNativeWebViewProps {
|
|
@@ -583,6 +584,17 @@ export interface IOSWebViewProps extends WebViewSharedProps {
|
583
|
584
|
* If not provided, the default is to let the webview try to render the file.
|
584
|
585
|
*/
|
585
|
586
|
onFileDownload?: (event: FileDownloadEvent) => void;
|
|
587
|
+
|
|
588
|
+ /**
|
|
589
|
+ * A Boolean value which, when set to `true`, indicates to WebKit that a WKWebView
|
|
590
|
+ * will only navigate to app-bound domains. Once set, any attempt to navigate away
|
|
591
|
+ * from an app-bound domain will fail with the error: “App-bound domain failure.”
|
|
592
|
+ *
|
|
593
|
+ * Applications can specify up to 10 “app-bound” domains using a new
|
|
594
|
+ * Info.plist key — `WKAppBoundDomains`.
|
|
595
|
+ * @platform ios
|
|
596
|
+ */
|
|
597
|
+ limitsNavigationsToAppBoundDomains?: boolean;
|
586
|
598
|
}
|
587
|
599
|
|
588
|
600
|
export interface MacOSWebViewProps extends WebViewSharedProps {
|