diff --git a/src/native_components/RNIModalView/RNIModalViewDeprecatedEvents.ts b/src/native_components/RNIModalView/RNIModalViewDeprecatedEvents.ts index 9d5c9309..9b5a69d4 100644 --- a/src/native_components/RNIModalView/RNIModalViewDeprecatedEvents.ts +++ b/src/native_components/RNIModalView/RNIModalViewDeprecatedEvents.ts @@ -42,6 +42,14 @@ export type OnModalAttemptDismissEventObject = NativeSyntheticEvent< RNIModalDeprecatedBaseEvent & {} >; +export type OnModalWillDismissEventObject = NativeSyntheticEvent< + RNIModalDeprecatedBaseEvent & {} +>; + +export type OnModalDidDismissEventObject = NativeSyntheticEvent< + RNIModalDeprecatedBaseEvent & {} +>; + // Event Handler Types // ------------------- @@ -73,3 +81,13 @@ export type OnModalFocusEvent = ( export type OnModalAttemptDismissEvent = ( event: OnModalAttemptDismissEventObject ) => void; + +/** @deprecated */ +export type DeprecatedOnModalWillDismissEvent = ( + event: OnModalWillDismissEventObject +) => void; + +/** @deprecated */ +export type DeprecatedOnModalDidDismissEvent = ( + event: OnModalDidDismissEventObject +) => void;