From 43de109c8d231d3376d2519f016d73e8925c0064 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Sun, 29 Sep 2024 08:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20Refactor:=20Move=20`ModalSheetVi?= =?UTF-8?q?ewEventEmitter`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/native_components/RNIModalSheetVIew/RNIModalSheetView.tsx | 2 +- .../RNIModalSheetVIew/RNIModalSheetViewTypes.ts | 2 +- src/{functions => types}/ModalSheetViewEventEmitter.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{functions => types}/ModalSheetViewEventEmitter.ts (97%) diff --git a/src/native_components/RNIModalSheetVIew/RNIModalSheetView.tsx b/src/native_components/RNIModalSheetVIew/RNIModalSheetView.tsx index 29e2a2cc..0cdec48d 100644 --- a/src/native_components/RNIModalSheetVIew/RNIModalSheetView.tsx +++ b/src/native_components/RNIModalSheetVIew/RNIModalSheetView.tsx @@ -9,7 +9,7 @@ import { useLazyRef } from '../../hooks/useLazyRef'; import type { RNIModalSheetViewProps, RNIModalSheetViewRef, } from './RNIModalSheetViewTypes'; import type { ModalMetrics } from '../../types/ModalMetrics'; -import type { ModalSheetViewEventEmitter } from '../../functions/ModalSheetViewEventEmitter'; +import type { ModalSheetViewEventEmitter } from '../../types/ModalSheetViewEventEmitter'; export const RNIModalSheetView = React.forwardRef< diff --git a/src/native_components/RNIModalSheetVIew/RNIModalSheetViewTypes.ts b/src/native_components/RNIModalSheetVIew/RNIModalSheetViewTypes.ts index ddcbc783..c8ed7718 100644 --- a/src/native_components/RNIModalSheetVIew/RNIModalSheetViewTypes.ts +++ b/src/native_components/RNIModalSheetVIew/RNIModalSheetViewTypes.ts @@ -7,7 +7,7 @@ import type { StateReactTag, StateViewID } from "react-native-ios-utilities"; import type { RNIModalSheetNativeViewProps } from "./RNIModalSheetNativeView"; import type { ModalMetrics } from "../../types/ModalMetrics"; -import type { ModalSheetViewEventEmitter } from "../../functions/ModalSheetViewEventEmitter"; +import type { ModalSheetViewEventEmitter } from "../../types/ModalSheetViewEventEmitter"; export type RNIModalSheetViewRef = { diff --git a/src/functions/ModalSheetViewEventEmitter.ts b/src/types/ModalSheetViewEventEmitter.ts similarity index 97% rename from src/functions/ModalSheetViewEventEmitter.ts rename to src/types/ModalSheetViewEventEmitter.ts index 621f610a..6e924c62 100644 --- a/src/functions/ModalSheetViewEventEmitter.ts +++ b/src/types/ModalSheetViewEventEmitter.ts @@ -1,6 +1,6 @@ import type { TSEventEmitter } from '@dominicstop/ts-event-emitter'; import type { RemapObject } from 'react-native-ios-utilities'; -import type { OnModalDidHideEventPayload, OnModalDidPresentEventPayload, OnModalDidShowEventPayload, OnModalWillHideEventPayload, OnModalWillPresentEventPayload, OnModalWillShowEventPayload } from '../types/CommonModalEvents'; +import type { OnModalDidHideEventPayload, OnModalDidPresentEventPayload, OnModalDidShowEventPayload, OnModalWillHideEventPayload, OnModalWillPresentEventPayload, OnModalWillShowEventPayload } from './CommonModalEvents'; export enum ModalSheetViewEvents {