felire / react-native-animated-dots-carousel

Package to configure your dots pagination carousel just like Instagram does
MIT License
62 stars 12 forks source link

[Fix] Dots alignment when no decreasing dots are present #9

Closed yagovv closed 1 month ago

yagovv commented 3 months ago

In the case that the length of the items array is smaller than the minimum required to show the decreasing dots, the alignment is incorrect: Before:

Screenshot 2024-08-07 at 12 42 03

After:

Screenshot 2024-08-07 at 12 42 25

Applying a alignItems: 'center' to the CarouselDots container style fixes the issue.

felire commented 1 month ago

I addressed here https://github.com/felire/react-native-animated-dots-carousel/pull/10. Even though I was unable to reproduce it, that line of code does not affect to any functionality