-
-
Notifications
You must be signed in to change notification settings - Fork 922
Description
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
Android
What happened?
We are using gorhom/react-native-bottom-sheet: 5.2.6 and using this library we are using TextInput inside the bottomsheet Modal where we are trying to adjust the bottomsheetModal using
runOnUI(() => {
internal.shouldHandleKeyboardEvents.value = true
})()
on focus but this is working fine in all versions, but in android 13 if i lock my device and unlock try to adjust the bottomsheet modal again keyboard is not not getting adjusted its overlapping the modal.
<BottomSheetModal
ref={modalRef}
snapPoints={snapPoints}
onDismiss={() => {
onClose?.()
onModalClosed?.()
}}
onAnimate={handleOpen}
overrideReduceMotion={ReduceMotion.Never}
animatedPosition={animatedPosition}
keyboardBehavior="interactive"
keyboardBlurBehavior="restore"
accessibilityLabel={'close'}
accessibilityHint={'bottomsheet modal'}
android_keyboardInputMode={Platform.OS === 'android' && Platform.Version >= 34 ? 'adjustPan' : 'adjustResize'}
importantForAccessibility="yes">
Please help in this. issue.
Reproduction steps
- start the modal with input text, it will adjust properly.
- lock the phone and unlock it.
- try to open the modal and focus on the input text.
this is working demo when we initially run it.
https://github.com/user-attachments/assets/8ef7df7c-1c2a-447a-a08f-b6534370fefc
this is after lock.unlock device its not working
https://github.com/user-attachments/assets/d6aa7447-801c-4b7f-addb-ba5d6f980315
Reproduction sample
https://snack.expo.dev/@nounreal/bottom-sheet---issue-reproduction-template