diff --git a/example/app/src/screens/advanced/customGestureHandling/CustomGestureHandling.tsx b/example/app/src/screens/advanced/customGestureHandling/CustomGestureHandling.tsx deleted file mode 100644 index ec3a4ea14..000000000 --- a/example/app/src/screens/advanced/customGestureHandling/CustomGestureHandling.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import React, { useCallback, useMemo, useRef } from 'react'; -import { StyleSheet, View } from 'react-native'; -import { useAnimatedProps, useSharedValue } from 'react-native-reanimated'; -import BottomSheet, { - BottomSheetScrollView, - SCROLLABLE_STATE, - useBottomSheetInternal, -} from '@gorhom/bottom-sheet'; -import { useSafeAreaInsets } from 'react-native-safe-area-context'; -import { Button } from '../../../components/button'; -import { ContactItem } from '../../../components/contactItem'; -import { createContactListMockData } from '../../../utilities/createMockData'; -import { GestureTranslationProvider } from './GestureTranslationContext'; -import { useCustomGestureEventsHandlers } from './useCustomGestureEventsHandlers'; -import { useCustomScrollEventsHandlers } from './useCustomScrollEventsHandlers'; - -const count = 60; - -const CustomGestureHandling = () => { - // refs - const bottomSheetRef = useRef(null); - - // variables - const snapPoints = useMemo(() => ['25%', '75%', '100%'], []); - const gestureTranslationY = useSharedValue(0); - - //#region callbacks - const handleSnapPress = useCallback(index => { - bottomSheetRef.current?.snapToIndex(index); - }, []); - const handleExpandPress = useCallback(() => { - bottomSheetRef.current?.expand(); - }, []); - const handleCollapsePress = useCallback(() => { - bottomSheetRef.current?.collapse(); - }, []); - const handleClosePress = useCallback(() => { - bottomSheetRef.current?.close(); - }, []); - //#endregion - - return ( - -