Skip to content

Commit

Permalink
💫 Update: Types - ModalViewEmitterDeprecated
Browse files Browse the repository at this point in the history
Related:
* `TODO:2023-03-04-13-15-11` - Refactor: Update Modal Events

Summary: Add `DeprecatedOnModalWillDismissEvent`, and `DeprecatedOnModalDidDismissEvent`.
  • Loading branch information
dominicstop committed Apr 16, 2023
1 parent 1db205f commit a825083
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/native_components/RNIModalView/RNIModalViewDeprecatedEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export type OnModalAttemptDismissEventObject = NativeSyntheticEvent<
RNIModalDeprecatedBaseEvent & {}
>;

export type OnModalWillDismissEventObject = NativeSyntheticEvent<
RNIModalDeprecatedBaseEvent & {}
>;

export type OnModalDidDismissEventObject = NativeSyntheticEvent<
RNIModalDeprecatedBaseEvent & {}
>;

// Event Handler Types
// -------------------

Expand Down Expand Up @@ -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;

0 comments on commit a825083

Please sign in to comment.