gorhom / react-native-bottom-sheet

A performant interactive bottom sheet with fully configurable options 🚀
https://gorhom.dev/react-native-bottom-sheet/
MIT License
7.08k stars 777 forks source link

[Bug] [Android]: Flickering backdrop when focus into BottomSheetTextInput and keyboard opens #2024

Open mheddomagic opened 2 weeks ago

mheddomagic commented 2 weeks ago

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Android

What happened?

On Android only: I have a dynamic bottom sheet with a text input inside, and a backdrop set. When focusing into the text input, the keyboard pops up and the backdrop flickers.

It's a little harder to reproduce on expo (although I have succeeded), but when using the android emulator, it's quite apparent.

Reproduction steps

Result -> The backdrop flickers. Easy to reproduce again; Just blur out of the text input to lose focus and dismiss the keyboard, then try again

Here's how it's looking on the Android Emulator:

https://github.com/user-attachments/assets/15333026-18ad-4b4d-b6b5-2610f576e3de

Reproduction sample

https://snack.expo.dev/@mheddomagic/f615a2

Relevant log output

No response