Describe the bug
Removing the last item in a non-looping carousel remains empty. Any swipe gesture is required to snap the carousel back to the previous item. Other items in the carousel correctly display the next available item when removed.
To Reproduce
Below is a minimum reproducible example. Scrolling to the third item and pressing "Delete Me" shows the behavior.
Describe the bug Removing the last item in a non-looping carousel remains empty. Any swipe gesture is required to snap the carousel back to the previous item. Other items in the carousel correctly display the next available item when removed.
To Reproduce Below is a minimum reproducible example. Scrolling to the third item and pressing "Delete Me" shows the behavior.
Expected behavior When the last item in the carousel is removed, it should show the new last item.
Screenshots https://github.com/dohooo/react-native-reanimated-carousel/assets/4079858/66910188-1d83-4ed2-bad3-3a6236e0e275
Versions (please complete the following information):
Smartphone (please complete the following information):