lodev09 / react-native-true-sheet

The true native bottom sheet experience 💩
https://sheet.lodev09.com
MIT License
394 stars 12 forks source link

[feature-request] onBackdropPress callback #91

Closed whalemare closed 2 weeks ago

whalemare commented 2 weeks ago

First of all, thank you for your library.

I have an issue, where TrueSheet with focused TextInput inside, close whole TrueSheet instead of just remove focus from TextInput, when user press on backdrop.

Can you please add some onBackdropPress function with default behavior that close TrueSheet, but can be overrides?

Video with example, how it looks like

https://github.com/user-attachments/assets/f90deed8-bd44-40cf-ba4d-c29e56bd86dc

lodev09 commented 2 weeks ago

You can conditionally set dismissible prop when keyboard appears.

Let me know if that works.