From 5928f2904b7cb166be622d2a261fb69aaa66a1c6 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Thu, 3 Oct 2024 04:55:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20Refactor:=20Move=20to=20`src/com?= =?UTF-8?q?ponents/ModalSheetViewContent`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ModalSheetView/ModalSheetView.tsx | 2 +- src/components/ModalSheetView/index.ts | 4 ---- .../ModalSheetViewContent.tsx | 3 +-- .../ModalSheetViewContentTypes.tsx | 2 +- .../ModalSheetViewMainContent.tsx | 2 +- .../ModalSheetViewMainContentTypes.ts | 0 src/components/ModalSheetViewContent/index.ts | 3 +++ src/index.ts | 2 ++ 8 files changed, 9 insertions(+), 9 deletions(-) rename src/components/{ModalSheetView => ModalSheetViewContent}/ModalSheetViewContent.tsx (95%) rename src/components/{ModalSheetView => ModalSheetViewContent}/ModalSheetViewContentTypes.tsx (89%) rename src/components/{ModalSheetView => ModalSheetViewContent}/ModalSheetViewMainContent.tsx (85%) rename src/components/{ModalSheetView => ModalSheetViewContent}/ModalSheetViewMainContentTypes.ts (100%) create mode 100644 src/components/ModalSheetViewContent/index.ts diff --git a/src/components/ModalSheetView/ModalSheetView.tsx b/src/components/ModalSheetView/ModalSheetView.tsx index ac1f4ca4..10f2c629 100644 --- a/src/components/ModalSheetView/ModalSheetView.tsx +++ b/src/components/ModalSheetView/ModalSheetView.tsx @@ -3,7 +3,7 @@ import { StyleSheet } from 'react-native'; import { Helpers } from 'react-native-ios-utilities'; import type { ModalSheetViewProps, ModalSheetViewRef } from './ModalSheetViewTypes'; -import type { ModalSheetViewContentProps } from './ModalSheetViewContentTypes'; +import type { ModalSheetViewContentProps } from '../ModalSheetViewContent'; import type { ModalSheetContentMap } from './ModalSheetContentMap'; import { RNIModalSheetView, type RNIModalSheetViewRef } from '../../native_components/RNIModalSheetVIew'; diff --git a/src/components/ModalSheetView/index.ts b/src/components/ModalSheetView/index.ts index de8822ba..bed07314 100644 --- a/src/components/ModalSheetView/index.ts +++ b/src/components/ModalSheetView/index.ts @@ -1,7 +1,3 @@ - export * from './ModalSheetView'; -export * from './ModalSheetViewMainContent'; - export type * from './ModalSheetViewTypes'; -export type * from './ModalSheetViewContentTypes'; diff --git a/src/components/ModalSheetView/ModalSheetViewContent.tsx b/src/components/ModalSheetViewContent/ModalSheetViewContent.tsx similarity index 95% rename from src/components/ModalSheetView/ModalSheetViewContent.tsx rename to src/components/ModalSheetViewContent/ModalSheetViewContent.tsx index c26944e2..dbef4d85 100644 --- a/src/components/ModalSheetView/ModalSheetViewContent.tsx +++ b/src/components/ModalSheetViewContent/ModalSheetViewContent.tsx @@ -3,9 +3,8 @@ import { StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native'; import { RNIWrapperView, type StateViewID } from 'react-native-ios-utilities'; -import { DEFAULT_SHEET_CONTENT_ENTRY } from './ModalSheetContentMap'; +import { DEFAULT_SHEET_CONTENT_ENTRY } from '../ModalSheetView/ModalSheetContentMap'; import type { ModalSheetViewContentProps } from './ModalSheetViewContentTypes'; - import { IS_USING_NEW_ARCH } from '../../constants/LibEnv'; diff --git a/src/components/ModalSheetView/ModalSheetViewContentTypes.tsx b/src/components/ModalSheetViewContent/ModalSheetViewContentTypes.tsx similarity index 89% rename from src/components/ModalSheetView/ModalSheetViewContentTypes.tsx rename to src/components/ModalSheetViewContent/ModalSheetViewContentTypes.tsx index dcaadf5d..035ad8fc 100644 --- a/src/components/ModalSheetView/ModalSheetViewContentTypes.tsx +++ b/src/components/ModalSheetViewContent/ModalSheetViewContentTypes.tsx @@ -2,7 +2,7 @@ import type { ViewStyle } from 'react-native'; import type { RNIWrapperViewProps } from 'react-native-ios-utilities'; import type { RNIModalSheetViewProps } from "../../native_components/RNIModalSheetVIew"; -import type { ModalSheetContentMap } from "./ModalSheetContentMap"; +import type { ModalSheetContentMap } from "../ModalSheetView/ModalSheetContentMap"; export type ModalSheetViewContentInheritedProps = Pick