question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onProgressChanged and onSnapToItem takes too long to give back an index

See original GitHub issue

Describe the bug onProgressChanged and onSnapToItem takes too long to give back an index If I want to set a scrollAnimationDuration of 1000 for example, and use onSnapToItem to set the index of the dot in a pagination component, it takes 1sec to update.

Expected behavior Gives the next index immediately on swipe. Not wait until it has snapped and settled.

Versions (please complete the following information):

  • react: v17.0.2
  • react-native: v0.68.2
  • react-native-reanimated-carousel: v3.0.6

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dohooocommented, Oct 19, 2022

Re. #267. I’ll make a simple pagination component for basic usage. OHHHHH, Sry! I just understood what you meant. You want a simple way to control the pagination state rather than delicate animation. Let me think it over.

1reaction
dohooocommented, Oct 19, 2022

Maybe this new prop isn’t necessary, and you’ll solve the problem when you figure out the correct usage of reanimated. 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Variable in class org.osmdroid.samplefragments.milstd2525 ...
Computes a map tile index as `long` to/from zoom/x/y Algorithm unfortunately different from SqlTileWriter.getIndex for historical reasons.
Read more >
Dohooo React-Native-Reanimated-Carousel Statistics & Issues
Issue Title State Comments Created Date Updated... Migrate to react‑native‑gesture‑handler v2 API open 1 2022‑12‑12 2022‑12‑15 Is it possible to disable the overscroll? open 1...
Read more >
Issues - react-native-reanimated-carousel - dohooo - Geeks
onProgressChanged and onSnapToItem takes too long to give back an index ... how to make the carousel auto-scroll programmatically.
Read more >
react-native-reanimated-carousel - BestofReactjs
Infinitely scrolling very smooth! ... Wait for the next element to appear. ... Hello, There's a bug where onSnapToItem gives floating numbered index...
Read more >
Caspian Zhao react-native-reanimated-carousel Issues - Giters
Cards are overlapped when navigating go back - only Android ... onProgressChanged and onSnapToItem takes too long to give back an index.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found