Skip to content

Commit

Permalink
🛠 Refactor: Types - Rename to RNIModalViewInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Jan 6, 2023
1 parent 2dc82d1 commit 93d7c67
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/native_components/RNIModalView/RNIModalViewEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { NativeSyntheticEvent } from 'react-native';
// Event Object Types
// ------------------

export type RNIModalViewNativeEventBase = {
export type RNIModalViewInfo = {
modalUUID: string;
isInFocus: boolean;
isPresented: boolean;
Expand All @@ -15,42 +15,42 @@ export type RNIModalViewNativeEventBase = {

// TODO
export type OnModalShowEventObject = NativeSyntheticEvent<
RNIModalViewNativeEventBase & {}
RNIModalViewInfo & {}
>;

// TODO
export type OnModalDismissEventObject = NativeSyntheticEvent<
RNIModalViewNativeEventBase & {}
RNIModalViewInfo & {}
>;

// TODO
export type OnRequestResultEventObject = NativeSyntheticEvent<
RNIModalViewNativeEventBase & {}
RNIModalViewInfo & {}
>;

// TODO
export type OnModalBlurEventObject = NativeSyntheticEvent<
RNIModalViewNativeEventBase & {}
RNIModalViewInfo & {}
>;

// TODO
export type OnModalFocusEventObject = NativeSyntheticEvent<
RNIModalViewNativeEventBase & {}
RNIModalViewInfo & {}
>;

// TODO
export type OnModalDidDismissEventObject = NativeSyntheticEvent<
RNIModalViewNativeEventBase & {}
RNIModalViewInfo & {}
>;

// TODO
export type OnModalWillDismissEventObject = NativeSyntheticEvent<
RNIModalViewNativeEventBase & {}
RNIModalViewInfo & {}
>;

// TODO
export type OnModalAttemptDismissEventObject = NativeSyntheticEvent<
RNIModalViewNativeEventBase & {}
RNIModalViewInfo & {}
>;

// Event Handler Types
Expand Down

0 comments on commit 93d7c67

Please sign in to comment.