Open henrymoulton opened 11 months ago
Hi @henrymoulton could you please test the latest v5 alpha release, the issue should be address with https://github.com/gorhom/react-native-bottom-sheet/pull/1675.
Does this library support React Native new architecture and Reanimated Version 3?
Bug
This might be related to the bug we've been dealing with since upgrading to REA3. I don't yet have a reproducible code sample but I do have some logs.
Note that the way I reproduced this was by using the Keyboard events, but I have user bug reports from just opening the screen.
Environment info
Steps To Reproduce
Note that we'd always want this BottomSheet to be visible, if it is hidden due to Keyboard it should show again.
Watch logs, it doesn't always happen but eventually I got a log:
I'm maybe surprised there's no keyboard event for when the keyboard is hidden?
Describe what you expected to happen:
-1
and even if it did it would recover to0
Reproducible sample code
None yet, and it's particularly difficult to reproduce.
Workaround
I've added a patch to the props
isNeverClosed
which checks if the animatedIndex is every -1 and early returns.Similar solutions exist in https://github.com/gorhom/react-native-bottom-sheet/pull/1359 and https://github.com/gorhom/react-native-bottom-sheet/pull/1320