Skip to content

Commit

Permalink
🛠 Refactor: Consolidate to RNIModalTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed May 4, 2023
1 parent 5e1989c commit c5870c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 22 deletions.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ export * from './native_components/RNIModalView';
export * from './native_modules/RNIModalViewModule';

export * from './types/NativeTypes';
export * from './types/RNIModalViewRelatedTypes';
export * from './types/RNIModalTypes';
export * from './types/RNIComputable';
16 changes: 15 additions & 1 deletion src/types/RNIModalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,23 @@ export type RNIModalCustomSheetDetent = Partial<RNIComputableOffset> & {
sizeConstant: number;
};

export type RNIModalFocusState =
/** Maps to `RNIModalFocusState` */
export type ModalFocusState =
| 'INITIAL'
| 'FOCUSING'
| 'FOCUSED'
| 'BLURRING'
| 'BLURRED';

/** Maps to `RNIModalPresentationState` */
export type ModalPresentationState =
| 'INITIAL'
| 'PRESENTING_PROGRAMMATIC'
| 'PRESENTING_UNKNOWN'
| 'PRESENTED'
| 'PRESENTED_UNKNOWN'
| 'DISMISSING_GESTURE'
| 'DISMISSING_PROGRAMMATIC'
| 'DISMISSING_UNKNOWN'
| 'DISMISS_GESTURE_CANCELLING'
| 'DISMISSED';
20 changes: 0 additions & 20 deletions src/types/RNIModalViewRelatedTypes.ts

This file was deleted.

0 comments on commit c5870c4

Please sign in to comment.