Skip to content

Commit

Permalink
🛠 Refactor: Rename to ModalSheetBottomAttachedContentOverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Oct 5, 2024
1 parent 72a9fcd commit ae91373
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions example/src/examples/ModalSheetViewTest04.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import { StyleSheet, Text, View } from 'react-native';

import { ExampleItemCard, CardButton, Colors } from 'react-native-ios-utilities';
import { ModalSheetView, ModalSheetViewContext, ModalSheetMainContent, type ModalSheetViewRef, ModalSheetViewBottomAttachedContentOverlay } from 'react-native-ios-modal';
import { ModalSheetView, ModalSheetViewContext, ModalSheetMainContent, type ModalSheetViewRef, ModalSheetBottomAttachedContentOverlay } from 'react-native-ios-modal';

import type { ExampleItemProps } from './SharedExampleTypes';

Expand Down Expand Up @@ -41,15 +41,15 @@ export function ModalSheetViewTest04(props: ExampleItemProps) {
</Text>
</View>
</ModalSheetMainContent>
<ModalSheetViewBottomAttachedContentOverlay
<ModalSheetBottomAttachedContentOverlay
contentContainerStyle={styles.modalBottomOverlayContent}
>
<View style={styles.bottomContentDummy}>
<Text>
{'Bottom Content'}
</Text>
</View>
</ModalSheetViewBottomAttachedContentOverlay>
</ModalSheetBottomAttachedContentOverlay>
</ModalSheetView>
</ExampleItemCard>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import * as React from 'react';
import { ModalSheetContent } from './ModalSheetContent';
import { ModalSheetViewNativeIDKeys } from '../ModalSheetView/ModalSheetViewNativeIDKeys';

import type { ModalSheetViewBottomAttachedContentOverlayProps } from './ModalSheetBottomAttachedContentOverlayTypes';
import type { ModalSheetBottomAttachedContentOverlayProps } from './ModalSheetBottomAttachedContentOverlayTypes';


export function ModalSheetViewBottomAttachedContentOverlay(
props: React.PropsWithChildren<ModalSheetViewBottomAttachedContentOverlayProps>
export function ModalSheetBottomAttachedContentOverlay(
props: React.PropsWithChildren<ModalSheetBottomAttachedContentOverlayProps>
) {
const { children, ...otherProps } = props;
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { ModalSheetContentProps } from './ModalSheetContentTypes';


export type ModalSheetViewBottomAttachedContentOverlayInheritedProps = Pick<ModalSheetContentProps,
export type ModalSheetBottomAttachedContentOverlayInheritedProps = Pick<ModalSheetContentProps,
| 'contentContainerStyle'
>;

export type ModalSheetViewBottomAttachedContentOverlayBaseProps = {
export type ModalSheetBottomAttachedContentOverlayBaseProps = {
};

export type ModalSheetViewBottomAttachedContentOverlayProps =
& ModalSheetViewBottomAttachedContentOverlayInheritedProps
& ModalSheetViewBottomAttachedContentOverlayBaseProps;
export type ModalSheetBottomAttachedContentOverlayProps =
& ModalSheetBottomAttachedContentOverlayInheritedProps
& ModalSheetBottomAttachedContentOverlayBaseProps;

0 comments on commit ae91373

Please sign in to comment.