machadogj / react-native-carousel-control

React Native Carousel control with support for iOS and Android
MIT License
247 stars 55 forks source link

Refactored the component and Added a new property (swipeThreshold) #24

Closed ardalann closed 7 years ago

ardalann commented 7 years ago

Thanks for the module!

We're using it in an iOS & Android app and the only issue we had with it was that users had to swipe at least half a page to go to the previous or next page. I wanted to add a swipeThreshold property that lets us adjust that behaviour and in order to do that I had to change the logic a bit. Those changes added up and I ended up refactoring most of the component.

It's tested on iOS (simulator and device) and Android (emulator).

machadogj commented 7 years ago

@ardalann this looks great! I'll merge and publish on npm 👍

machadogj commented 7 years ago

@ardalann this has been published in v1.1.0, thanks again!