diff --git a/example/app/src/screens/index.ts b/example/app/src/screens/index.ts index 69abdf95c..251901990 100644 --- a/example/app/src/screens/index.ts +++ b/example/app/src/screens/index.ts @@ -53,7 +53,7 @@ export const screens = [ getScreen: () => require('./modal/StackExample').default, }, { - name: 'Dynamic Snap Point', + name: 'Dynamic Sizing', slug: 'Modal/DynamicSnapPointExample', getScreen: () => require('./modal/DynamicSnapPointExample').default, }, @@ -88,7 +88,7 @@ export const screens = [ getScreen: () => require('./advanced/BackdropExample').default, }, { - name: 'Dynamic Snap Point', + name: 'Dynamic Sizing', slug: 'Advanced/DynamicSnapPointExample', getScreen: () => require('./advanced/DynamicSnapPointExample').default, }, diff --git a/example/app/src/screens/modal/DetachedExample.tsx b/example/app/src/screens/modal/DetachedExample.tsx index 2e06327fc..9a132b737 100644 --- a/example/app/src/screens/modal/DetachedExample.tsx +++ b/example/app/src/screens/modal/DetachedExample.tsx @@ -5,7 +5,6 @@ import { BottomSheetModal, BottomSheetView, BottomSheetFooter, - useBottomSheetDynamicSnapPoints, } from '@gorhom/bottom-sheet'; import { Button } from '../../components/button'; import { ContactItem } from '../../components/contactItem'; @@ -18,16 +17,9 @@ const DetachedExample = () => { const bottomSheetRef = useRef(null); // variables - const initialSnapPoints = useMemo(() => ['CONTENT_HEIGHT'], []); const data = useMemo(() => createContactListMockData(2), []); // hooks - const { - animatedHandleHeight, - animatedSnapPoints, - animatedContentHeight, - handleContentLayout, - } = useBottomSheetDynamicSnapPoints(initialSnapPoints); const { bottom: safeBottomArea } = useSafeAreaInsets(); // callbacks @@ -73,9 +65,7 @@ const DetachedExample = () => {