You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overview:
Encountering unexpected behaviors when using the react-native-reanimated-carousel library to build a flashcard list. The issues vary depending on the number of items in the data array.
Issues:
Data Length > 2 (Expected Behavior):
The carousel functions correctly with a dataset larger than two items.
Data Length = 2 (Erroneous Behavior):
Click actions on the first card inadvertently trigger actions on the second card as well, causing both cards to flip simultaneously.
Data Length = 1 (Erroneous Behavior):
The single item in the carousel appears with an opacity of zero, rendering it invisible.
I have a carousel with two items. The carousel ref thinks there are 4 items in the carousel, but the data only has 2 items. Other carousels are fine as long as they have more than 2 items.
This is only an issue for carousels with 2 items? Anyone else running into something similar?
Bug Description
Overview:
Encountering unexpected behaviors when using the
react-native-reanimated-carousel
library to build a flashcard list. The issues vary depending on the number of items in the data array.Issues:
Data Length > 2 (Expected Behavior):
Data Length = 2 (Erroneous Behavior):
Data Length = 1 (Erroneous Behavior):
Screenshots:
Behavior with more than two items:
Behavior with exactly two items:
Behavior with a single item:
To Reproduce
Here's my code
Flipcard
Expected behavior
I hope I can get a consistent behavior like the first one(many items)
Versions (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: