diff --git a/example/src/examples/ModalSheetViewTest01.tsx b/example/src/examples/ModalSheetViewTest01.tsx index ae0d5fed..72d553fb 100644 --- a/example/src/examples/ModalSheetViewTest01.tsx +++ b/example/src/examples/ModalSheetViewTest01.tsx @@ -182,6 +182,28 @@ export function ModalSheetViewTest01(props: ExampleItemProps) { "\n" ); }} + onModalWillDismiss={({nativeEvent}) => { + if(!shouldEnableModalEventsLogging) { + return; + }; + + console.log( + "ModalSheetViewTest01.onModalWillDismiss", + "\n - nativeEvent:", nativeEvent, + "\n" + ); + }} + onModalDidDismiss={({nativeEvent}) => { + if(!shouldEnableModalEventsLogging) { + return; + }; + + console.log( + "ModalSheetViewTest01.onModalDidDismiss", + "\n - nativeEvent:", nativeEvent, + "\n" + ); + }} onModalWillHide={({nativeEvent}) => { if(!shouldEnableModalEventsLogging) { return; diff --git a/example/src/examples/ModalSheetViewTest02.tsx b/example/src/examples/ModalSheetViewTest02.tsx index 548b35c4..eb0c8f7e 100644 --- a/example/src/examples/ModalSheetViewTest02.tsx +++ b/example/src/examples/ModalSheetViewTest02.tsx @@ -26,6 +26,14 @@ function ModalContent(props: { logListDisplayRef.current?.addItem('onModalDidPresent'); }); + useModalSheetViewEvents('onModalWillDismiss', () => { + logListDisplayRef.current?.addItem('onModalWillDismiss'); + }); + + useModalSheetViewEvents('onModalDidDismiss', () => { + logListDisplayRef.current?.addItem('onModalDidDismiss'); + }); + useModalSheetViewEvents('onModalWillShow', () => { logListDisplayRef.current?.addItem('onModalWillShow'); });