Skip to content

Commit

Permalink
fix: adapt CarouselHero component with new react-native-reanimated-ca…
Browse files Browse the repository at this point in the history
…rousel API

Signed-off-by: clegirar <[email protected]>
  • Loading branch information
clegirar committed Feb 2, 2024
1 parent f6e2519 commit 7d9441c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const CarouselHero = () => {
width={490}
height={490}
data={data}
panGestureHandlerProps={{ enableTrackpadTwoFingerGesture: true }}
onConfigurePanGesture={(g) => g.enableTrackpadTwoFingerGesture(true)}
onProgressChange={(_, absoluteProgress) => {
setCurrentPage(Math.round(absoluteProgress));
}}
Expand Down

0 comments on commit 7d9441c

Please sign in to comment.