Closed narobertson42 closed 2 months ago
Hi @nar213,
Since the bug is random and you therefore don't have a reproductible example, it's quite hard to investigate, especially since I haven't encountered this issue yet.
Still, the fact that it may be an issue with the plugin rather than with the FlatList
component makes me wonder if this could be the sign of an overlooked problem.
I'm currently working on replacing the FlatList component altogether (see #250); hopefully this will help solving the issue!
Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2
I posted this in react-native issues but feel it might be more appropriate to post it here as appears to be associated with the Carousel component in particular.
React-Native Issue
Environment
Environment: OS: macOS High Sierra 10.13.6 Node: 10.4.1 Yarn: 1.7.0 npm: 6.2.0 Watchman: Not Found Xcode: Xcode 9.4.1 Build version 9F2000 Android Studio: 3.1 AI-173.4720617
Packages: (wanted => installed) react: 16.4.1 => 16.4.1 react-native: ~0.56.0 => 0.56.0
Description
This is tough to reproduce, I haven't been able to recreate this issue in a nice sandbox environment, however I have shared the general structure of the code along with the error log in the hope that somebody else might be able to see how to recreate it.
Appears to be similar to issue #7165
Devices affected by the crash: Moto G3 (Android 6.0.1) and Huawei P9 (Android 7)
Devices not affected by the crash: Pixel 2 (Android 9)
The issue stops when you remove all LayoutAnimations from the code
Crashlog
Reproducible Demo
This is a snippet from the application I am building. I have tested this code using a
FlatList
instead of aCarousel
and the issue stops occurring so this might not be a react-native specific issue but rather an issue withreact-native-snap-carousel