-
-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Android - Can't click Pressables inside Scrollview that is alongside my BottomSheet both inside a GestureHandlerRootView #2099
Comments
I'm experiencing the same issue. For the child components of the ScrollView, the onPress callbacks work correctly for any components that were initially rendered at the top (the initial scroll position). However, if I scroll down and tap on components that were not visible in the initial scroll position (In other words, components ware hidden), their onPress callbacks do not fire. |
FYI; // render
const DraggableView = enableContentPanningGesture
? BottomSheetDraggableView
: Animated.View;
|
I am also experiencing the same issue as @r-obeen - where it does not matter if the component was initially rendered at the top or not, after scrolling all onPress callbacks do not fire unless you scroll back to the top again. Anyone have any luck with a fix/workaround? |
@junaid-ahmed7 I don't know why nor how but the issue resolved by itself surprisingly... |
@r-obeen Interesting. I'm still seeing the same issue. Would you mind sharing the versions you are running where the issue resolved itself for:
Thank you |
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
Android
What happened?
When I have a BottomSheet into my ScrollView and I scroll a bit, my Pressables in my ScrollView are not responding anymore... If I remove the BottomSheet component, it works again...
It only happens on Android (physical phone, I have tested on Android 14). It works fine on physical iPhone, iPhone simulator and Android Simulator 🤔.
Any idea why that happens ?
Demo (sorry, I recorded on a very slow Android phone, I've tested on fast Android phone, same issue) :
https://github.com/user-attachments/assets/53510520-63a6-4dab-8307-55871a95c80c
Reproduction steps
If you remove the
<BottomSheet>
component (with its children), button presses will work fine, even after scrollReproduction sample
https://snack.expo.dev/@robeen/bottomsheet-press-issue-after-scroll?platform=android
Relevant log output
No response
The text was updated successfully, but these errors were encountered: