Skip to content

Question: Preventing sheet from closing when interacting with elements (Android) #141

@szheleshchenko

Description

@szheleshchenko

Hey, I ran into an issue on Android where the sheet closes when interacting with elements inside it (like a DatePicker, but could be any interactive element). On iOS, the sheet stays open when using

<View
  onStartShouldSetResponder={() => true}
  onResponderTerminationRequest={() => false}
/>

but on Android, these props don't work.

I tried to workaround it with adding a ScrollView and passing scrollRef to the sheet, but that was no use.

Is there a way to prevent this behavior on Android without disabling the sheet's movement altogether? It's a pretty common use case to have interactive elements inside the bottom sheet that shouldn’t trigger a close action when touched.

Would love some help or suggestions on how to handle this. Thanks! 🙌

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions