Swiper/carousel component for React Native featuring previews, multiple layouts, parallax images, performant handling of huge numbers of items, and more. Compatible with Android & iOS.
BSD 3-Clause "New" or "Revised" License
10.37k
stars
2.29k
forks
source link
This causes issues when switching to RTL in Android #1007
It must be rendered in RTL layout without any error
Actual Behavior
It says "com.facebook.react.views.scroll.ReactScrollView cannot be cast to com.facebook.react.views.scroll.ReactHorizontalScrollView "
Reproducible Demo
I am using react-native-snap-carousel and it was working fine on both Android and iOS in LTR layout but when I switch to RTL layout it causes exception in Android as "com.facebook.react.views.scroll.ReactScrollView cannot be cast to com.facebook.react.views.scroll.ReactHorizontalScrollView "
Is this a bug report, a feature request, or a question?
Question
Have you followed the required steps before opening a bug report?
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
Specific to android
Is the bug reproductible in a production environment (not a debug one)?
On both environment
Environment
Environment: React: 18.2.0 React native: 0.72.6 react-native-snap-carousel: 3.9.1
Target Platform: Android 13
Expected Behavior
It must be rendered in RTL layout without any error
Actual Behavior
It says "com.facebook.react.views.scroll.ReactScrollView cannot be cast to com.facebook.react.views.scroll.ReactHorizontalScrollView "
Reproducible Demo
I am using react-native-snap-carousel and it was working fine on both Android and iOS in LTR layout but when I switch to RTL layout it causes exception in Android as "com.facebook.react.views.scroll.ReactScrollView cannot be cast to com.facebook.react.views.scroll.ReactHorizontalScrollView "