Skip to content

Commit

Permalink
🛠 Refactor: Move to src/components/ModalSheetViewContent
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Oct 2, 2024
1 parent 1bbda41 commit 5928f29
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/ModalSheetView/ModalSheetView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 0 additions & 4 deletions src/components/ModalSheetView/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@


export * from './ModalSheetView';
export * from './ModalSheetViewMainContent';

export type * from './ModalSheetViewTypes';
export type * from './ModalSheetViewContentTypes';
Original file line number Diff line number Diff line change
Expand Up @@ -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';


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<RNIModalSheetViewProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';

import { ModalSheetViewContent } from './ModalSheetViewContent';
import type { ModalSheetViewMainContentProps } from './ModalSheetViewMainContentTypes';
import { ModalSheetViewNativeIDKeys } from './ModalSheetViewNativeIDKeys';
import { ModalSheetViewNativeIDKeys } from '../ModalSheetView/ModalSheetViewNativeIDKeys';


export function ModalSheetViewMainContent(
Expand Down
3 changes: 3 additions & 0 deletions src/components/ModalSheetViewContent/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

export * from './ModalSheetViewMainContent';
export type * from './ModalSheetViewContentTypes';
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

export * from './components/ModalSheetView';
export * from './components/ModalSheetViewContent';

export * from './context/ModalSheetViewContext';
export * from './hooks/useModalSheetViewEvents';

Expand Down

0 comments on commit 5928f29

Please sign in to comment.