Closed dan-fein closed 3 years ago
Probably the TouchableOpacity
is becoming the target of the touch event. Can you scroll if you remove it?
Ah that worked, removed them all and was able to find a little real estate to scroll with. What have you seen as best practice for having touchable components but scrollable headers? (Also, thanks a lot for maintaining this so actively, it seems really promising and I'm excited to use it!)
What have you seen as best practice for having touchable components but scrollable headers
Keep them small as possible! 😄
Or try using touchables from https://docs.swmansion.com/react-native-gesture-handler/docs/component-touchables.
Or maybe just stop capturing on move (https://reactnative.dev/docs/panresponder).
I didn't try. If you find a better answer please let know!
(Also, thanks a lot for maintaining this so actively, it seems really promising and I'm excited to use it!)
You are welcome!
I'm closing
Hello, can we open this issue. I have a header with a touchable (TouchableWithoutFeedback). I have tried using the touchables from react-native-gesture-handler
with no luck. Do you have any other tip?
Current behavior
Currently when I scroll on the header it doesn't move the position, despite adding pointer events.
Expected behaviour
Would expect it to scroll
Code sample
Screenshots (if applicable)
N/A, just imagine a header trying to be scrolled and not going anywhere
What have you tried
I've tried adding the relevant pointer-events