What is the difference between the ScrollView here and the one shipping with React Native? #2152
-
|
Hi, everyone! I recently came across an issue where a modal (using React Navigation) wasn't scrolling on Android. Its contents were wrapped in a For context, this is how I'm using it. The container class contains <ScrollView style={styles.container} showsVerticalScrollIndicator={false}>
<SafeAreaView>
{/* ... */}
</SafeAreaView>
</ScrollView>Thanks, everyone! Have a nice day. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The |
Beta Was this translation helpful? Give feedback.
The
ScrollViewfromreact-native-gesture-handleris the same as from React Native but it's also wrapped withNativeViewGestureHandler, which incorporates it to the GH's gesture system. Generally, if you have buttons, touchables or gestures from Gesture Handler inside theScrollView, you should use theScrollViewexported by Gesture Handler. This way the gestures/components will play nice with scrolling.