Skip to content

What is the difference between the ScrollView here and the one shipping with React Native? #2152

Answered by j-piasecki
darrylyoung asked this question in Q&A
Discussion options

You must be logged in to vote

The ScrollView from react-native-gesture-handler is the same as from React Native but it's also wrapped with NativeViewGestureHandler, which incorporates it to the GH's gesture system. Generally, if you have buttons, touchables or gestures from Gesture Handler inside the ScrollView, you should use the ScrollView exported by Gesture Handler. This way the gestures/components will play nice with scrolling.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@darrylyoung
Comment options

Answer selected by darrylyoung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants