fix(types): Make onContentProcessDidTerminate optional (#890)

This commit is contained in:
Silver Chen
2019-09-23 18:34:02 +02:00
committed by Thibault Malbranche
parent f9e32921e0
commit b010e0e04f
+2 -2
View File
@@ -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 {