Open MoKhajavi75 opened 5 years ago
Hi @MohamadKh75,
Can you please provide a Snack example in which the issue can be reproduced?
Hi @MohamadKh75,
Can you please provide a Snack example in which the issue can be reproduced?
I'll do that asap, for now, i just use this.carousel.snapToItem(index + 1)
and this.carousel.snapToItem(index - 1)
:grin:
Can you please check if #522 fixed this for you?
Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2
Is this a bug report, a feature request, or a question?
Bug report
Have you followed the required steps before opening a bug report?
Have you made sure that it wasn't a React Native bug?
Yes
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
I'm on the Android 7
Is the bug reproductible in a production environment (not a debug one)?
Yes - I tried the released apk but i got the bug!
Environment
Expected Behavior
snapToNext()
andsnapToPrev()
should work properly.Actual Behavior
snapToNext()
andsnapToPrev()
are not working!Reproducible Demo
I'm using
AsyncStorage.setItem()
to save thethis.carousel.currentIndex
incomponentWillUnmount()
and then i useAsyncStorage.getItem()
to get the index andthis.carousel.snapToItem(responseIndex)
in thecomponentWillMount()
. This is working BUT when i usethis.carousel.snapToItem(responseIndex)
, thesnapToNext()
andsnapToPrev()
are not working!Steps to Reproduce
react-native init TestingProject
yarn add react-native-snap-carousel
AsyncStorage
and what i mentioned in the Reproducible Demo