diff --git a/example/src/App.tsx b/example/src/App.tsx index f108c471..082820d7 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -15,6 +15,7 @@ import Animated, { useAnimatedStyle, useSharedValue, } from 'react-native-reanimated'; +import { TouchableWithoutFeedback } from 'react-native-gesture-handler'; const window = Dimensions.get('window'); @@ -26,7 +27,8 @@ const data: ImageSourcePropType[] = [ export default function App() { const progressValue = useSharedValue(0); - const r = React.useRef(null); + const defaultCarouselRef = React.useRef(null); + const parallaxCarouselRef = React.useRef(null); return ( - + - defaultIndex={1} - ref={r} + ref={defaultCarouselRef} width={window.width} data={data} parallaxScrollingScale={0.8} @@ -67,13 +72,13 @@ export default function App() {