mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 19:51:10 +00:00
fix(types): Make onContentProcessDidTerminate optional (#890)
This commit is contained in:
committed by
Thibault Malbranche
parent
f9e32921e0
commit
b010e0e04f
+2
-2
@@ -271,7 +271,7 @@ export interface IOSNativeWebViewProps extends CommonNativeWebViewProps {
|
||||
pagingEnabled?: boolean;
|
||||
scrollEnabled?: boolean;
|
||||
useSharedProcessPool?: boolean;
|
||||
onContentProcessDidTerminate: (event: WebViewTerminatedEvent) => void;
|
||||
onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void;
|
||||
}
|
||||
|
||||
export interface IOSWebViewProps extends WebViewSharedProps {
|
||||
@@ -450,7 +450,7 @@ export interface IOSWebViewProps extends WebViewSharedProps {
|
||||
* Function that is invoked when the WebKit WebView content process gets terminated.
|
||||
* @platform ios
|
||||
*/
|
||||
onContentProcessDidTerminate: (event: WebViewTerminatedEvent) => void;
|
||||
onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void;
|
||||
}
|
||||
|
||||
export interface AndroidWebViewProps extends WebViewSharedProps {
|
||||
|
||||
Reference in New Issue
Block a user