Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config snapToNext animation duration? #671

Closed
heesienooi opened this issue Mar 28, 2020 · 1 comment
Closed

Config snapToNext animation duration? #671

heesienooi opened this issue Mar 28, 2020 · 1 comment

Comments

@heesienooi
Copy link

heesienooi commented Mar 28, 2020

Is this a bug report, a feature request, or a question?

Question

Is there any way to configure the snapToNext() animation duration?

I have a next button which onPressed will programmatically trigger Carousel to snap to the next item. However, in Android, the animation seems too fast to me and I'd like to slow it down to perhaps 500ms.

What I'm seeing is like 100-150ms snap which is lightning fast. Worth mentioning, I've only tested this on Google Pixel 3a emulator. Could it be emulator issue? I'm not sure.

@bd-arc
Copy link
Contributor

bd-arc commented Apr 3, 2020

@heesienooi Unfortunately, this is something we've been asking for years to the React Native team (literally, see #203 for example) to no avail so far. ScrollView's scrollTo() method just won't take any duration. And yes, that's a real bummer.

If things were to change on RN's side, I can guarantee you we'd be the first to implement it ;-)

@bd-arc bd-arc closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants