Skip to content

Commit 6c6713b

Browse files
committed
partially resolve android keyboard bug
gorhom#618 (comment)
1 parent 029fcf1 commit 6c6713b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/bottomSheet/BottomSheet.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
14361436
method: 'useAnimatedReaction::OnSnapPointChange',
14371437
params: {
14381438
snapPoints,
1439+
containerHeight,
14391440
},
14401441
});
14411442

@@ -1479,7 +1480,11 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
14791480
useAnimatedReaction(
14801481
() => ({
14811482
_keyboardState: animatedKeyboardState.value,
1482-
_keyboardHeight: animatedKeyboardHeight.value,
1483+
_keyboardHeight:
1484+
Platform.OS === 'android' &&
1485+
android_keyboardInputMode === KEYBOARD_INPUT_MODE.adjustResize
1486+
? 0
1487+
: animatedKeyboardHeight.value,
14831488
}),
14841489
(result, _previousResult) => {
14851490
const { _keyboardState, _keyboardHeight } = result;

0 commit comments

Comments
 (0)