-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Android] App crash randomly (scrollToOffset) #158
Comments
+1 for me this usually happens when I rotate device with the js debugging mode turned on |
I think I know where the problem is. I will push a fix as soon as possible and will ask you guys to try it before releasing it. |
Thanks you! Which is the stable version for Android? |
If my guess is correct, you shouldn't have any issue with version |
@KarlosQ @wildvalcom This commit should solve the issue. Can you confirm? To test it:
If you want a deeper understanding of the issue at stake, see this React Native thread. Basically, you should apparently avoid using stateless components when rendered inside scroll components. They should be migrated to regular components that extend |
@bd-arc well, with this fix everything works as expected. Are you planing to merge this fix into master? |
@wildvalcom It has already been merged, just not published on NPM yet ;-) I'll publish a new release when I'm done fixing a few other issues. |
@bd-arc No more crash, thank you! |
Thanks @bd-arc! |
You're welcome @aschenkel. Always good to hear though ;-) |
Sometimes, randomly, the app crash in Android.
The error:
Carousel props:
React-native versions I tried: 0.47.1 and 0.48.3
react-native-snap-carousel: 3.2.3
Android Studio Simulator (API 22)
The text was updated successfully, but these errors were encountered: