kolking / react-native-page-indicator

React Native component designed to display the current page of a swiper, slideshow, carousel, and more.
MIT License
37 stars 1 forks source link

Use with Reanimated #25

Open Hendrixer opened 1 month ago

Hendrixer commented 1 month ago

Let me start by saying, awesome project! I'm currently trying to implement it in my app. However, I'm using react-pager-view which is based on Reanimated. All your examples how how to accomplish the animations with Animated from react-native.

I'm just curious if you know how one might achieve the animations on scroll using Reanimated instead. Thanks

kolking commented 1 month ago

Hey Scott! Thank you very much. Would you mind to share a code example so I can better understand what are you trying to achieve? Also could you tell what's the purpose of using react-native-pager-view in your case, because swiping left/right through pages can be easily made using <ScrollView horizontal={true} pagingEnabled={true}> without a third-party library.

Hendrixer commented 4 weeks ago

No that's a good point. For me, it's a vertical scroll with paging enabled. I wasn't aware of the scroll view having the paging option. I might reactors to use the scroll view instead of the pager component. Thank you.