horizontal snap does not work in react-native version 0.64, 0.65
See original GitHub issueIs this a bug report, a feature request, or a question?
Bug report
Have you followed the required steps before opening a bug report?
(Check the step you’ve followed - put an x
character between the square brackets ([]
).)
- I have read the guidelines regarding bug report.
- I have reviewed the documentation in its entirety, including the dedicated documentations 📚.
- I have searched for existing issues and made sure that the problem hasn’t already been reported.
- I am using the latest plugin version.
- I am following the issue template closely in order to produce a useful bug report.
Have you made sure that it wasn’t a React Native bug?
Yes, It worked in react-native version 0.63.2 but does not work in 0.64.0, 0.65.0
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
Android only
Is the bug reproductible in a production environment (not a debug one)?
Yes, it’s production build
Environment
Environment: React: 17.0.2 React native: 0.65.1 react-native-snap-carousel: 3.9.1
Expected Behavior
Horizontal snap work
Actual Behavior
Horizontal snap does not work
Reproducible Demo
This problem only occurs in latest react-native versions. skip demo
Steps to Reproduce
- problem occurs always in android devices
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:8
Top Results From Across the Web
React Native version Mismatch - Native version: 0.59.5
I fixed the problem with help from github forum. This error was caused in my case by having Android 9 in simulator.
Read more >Upgrading to new versions - React Native
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies.
Read more >npx react-native run-android build failed - You.com
I get this error when i run npx react-native run-android in folder. Everything is installed, emulator running, USB debuggin enabled, node v12, Pixel...
Read more >Common bugs in React Native ScrollView and how to fix them
React Native's ScrollView component is ubiquitous, but its implementation can sometimes lead to mistakes. Learn what to look out for here.
Read more >react-native - npm
A framework for building native apps using React. Latest version: 0.70.6, last published: a month ago. Start using react-native in your ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK guys I have some news. For me it worked now after updating the lib from
0.65.0
to0.65.1
. So I’m sorry but that probably won’t help you @heekyu-pu. What could help is that I debugged a bit and discovered that - at least in my case - it stopped in the functionCarousel._getWrappedRef
.If you change this
to just
it worked for me. Not sure though if you can safely do that for all cases.
Setting the
decelerationRate={2}
(any value >=2) makes the behavior a bit more predictable. Still not ideal but at least it always snaps in place, in my case.