You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 4 of the @gorhom/bottom-sheet library, there appears to be a conflict between the keyboardBehavior set to "extend" and the keyboardBlurBehavior set to "restore". When the BottomSheetModal is initially at a snapPoint of "25%" and the keyboard is activated, the modal correctly extends to "60%". However, upon the keyboard's dismissal, the modal fails to restore back to the "25%" snap point as expected.
Environment info
Library
Version
@gorhom/bottom-sheet
4.6.3
react-native
0.74.3
react-native-reanimated
^3.14.0
react-native-gesture-handler
4.6.3
Steps To Reproduce
Initialize BottomSheetModal with snapPoints set to ["25%", "60%"].
Set keyboardBehavior to "extend" and keyboardBlurBehavior to "restore".
Set BottomSheetTextInput as children component
Trigger the keyboard to appear by focusing on TextInput. Observe the modal extending to "60%".
Dismiss the keyboard and observe the modal's failure to restore to "25%".
Describe what you expected to happen:
When the keyboard is dismissed, the BottomSheetModal should restore back to the initial "25%" snap point.
The modal's behavior should be consistent with the defined properties for keyboard interaction.
Bug
In version 4 of the
@gorhom/bottom-sheet
library, there appears to be a conflict between thekeyboardBehavior
set to"extend"
and thekeyboardBlurBehavior
set to"restore"
. When theBottomSheetModal
is initially at asnapPoint
of"25%"
and the keyboard is activated, the modal correctly extends to"60%"
. However, upon the keyboard's dismissal, the modal fails to restore back to the"25%"
snap point as expected.Environment info
Steps To Reproduce
BottomSheetModal
withsnapPoints
set to["25%", "60%"]
.keyboardBehavior
to"extend"
andkeyboardBlurBehavior
to"restore"
.BottomSheetTextInput
as children component"60%"
."25%"
.Describe what you expected to happen:
BottomSheetModal
should restore back to the initial"25%"
snap point.Reproducible sample code
https://github.com/zcmgyu/repoduce-bottom-sheet-issue
The text was updated successfully, but these errors were encountered: