felire / react-native-animated-dots-carousel Goto Github PK
View Code? Open in Web Editor NEWPackage to configure your dots pagination carousel just like Instagram does
License: MIT License
Package to configure your dots pagination carousel just like Instagram does
License: MIT License
Hey @felire , how i can always center dots, maybe you can help me with it?
Initially they not center:
I need something like that:
Hello,
I am currently utilizing the "react-native-animated-dots-carousel" in my React Native project and have stumbled upon an issue with the maxIndicators property.
Description of the Issue:
When the number of items in the data array exceeds the value set in the maxIndicators property, the dots fail to render. Conversely, when the maxIndicators property is set to a value greater than the number of items, it functions correctly.
Steps to Reproduce:
Expected Behavior:
I anticipated that setting a maxIndicators value less than the number of items would still allow the dots to function properly, with the additional items being accommodated.
Actual Behavior:
The dots fails to render when the maxIndicators value is less than the number of items in the data array.
Additional Information:
I find this behavior strange because, based on the examples provided in your GitHub repository, it seems like this functionality should work correctly. It appears that in your examples, the dots renders fine even when the maxIndicators is less than the number of items.
Environment:
I would appreciate any guidance or updates that can address this issue. Thank you for your time and assistance.
I think this is a pretty simple change, but could you add the animation duration to go from one dot to the next as a prop? In the code it looks like it's 300ms, and from my experience with it, it feels a little slow and 200ms would probably make it feel more like instagram and other apps.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.