diff --git a/src/components/ModalView/ModalView.tsx b/src/components/ModalView/ModalView.tsx index 10d83652..ab59ca24 100644 --- a/src/components/ModalView/ModalView.tsx +++ b/src/components/ModalView/ModalView.tsx @@ -43,7 +43,8 @@ import { import { RNIModalViewModule } from '../../native_modules/RNIModalViewModule'; -import type { ModalViewProps, ModalViewState } from './ModalViewProps'; +import type { ModalViewProps } from './ModalViewProps'; +import type { ModalViewState } from './ModalViewState'; import { ModalViewEmitterEvents, diff --git a/src/components/ModalView/ModalViewProps.ts b/src/components/ModalView/ModalViewProps.ts index 49bf684d..399b9135 100644 --- a/src/components/ModalView/ModalViewProps.ts +++ b/src/components/ModalView/ModalViewProps.ts @@ -88,12 +88,4 @@ export type ModalViewDeprecatedProps = { // prettier-ignore export type ModalViewProps = - ViewProps & ModalViewBaseProps & ModalViewDeprecatedProps; - -export type ModalViewState = { - isModalVisible: boolean; - childProps: unknown; - enableSwipeGesture: boolean; - isModalInPresentation: boolean; - isModalInFocus: boolean; -}; + ViewProps & ModalViewBaseProps & ModalViewDeprecatedProps; \ No newline at end of file diff --git a/src/components/ModalView/ModalViewState.ts b/src/components/ModalView/ModalViewState.ts new file mode 100644 index 00000000..500bfb03 --- /dev/null +++ b/src/components/ModalView/ModalViewState.ts @@ -0,0 +1,7 @@ +export type ModalViewState = { + isModalVisible: boolean; + childProps: unknown; + enableSwipeGesture: boolean; + isModalInPresentation: boolean; + isModalInFocus: boolean; +};