Would it be possible to get a callback how much of the incoming view is visible to create animations on the vanishing view for example?
+1 would like this too
@BraunreutherA technically you can do this by resolving the width of your views keeping track of the current index and implementing an onScroll handler and resolving the height of the current screen.
// this.currentIndex = 0;
// this.viewWidth = Dimensions.get('window').width;
<Swiper
scrollEventThrottle={16}
onScroll={(e) =>
console.log(e.nativeEvent.contentOffset.x / (this.viewWidth * (this.currentIndex + 1))); // percent transition
}
>
...
</Swiper>
Most helpful comment
@BraunreutherA technically you can do this by resolving the width of your views keeping track of the current index and implementing an
onScrollhandler and resolving the height of the current screen.