Skip to content

Commit 50fedc4

Browse files
committed
partially resolve android keyboard bug
gorhom#618 (comment)
1 parent 0a600fc commit 50fedc4

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
@@ -1434,6 +1434,7 @@ const BottomSheetComponent = forwardRef<BottomSheetMethods, BottomSheetProps>(
14341434
method: 'useAnimatedReaction::OnSnapPointChange',
14351435
params: {
14361436
snapPoints,
1437+
containerHeight,
14371438
},
14381439
});
14391440

@@ -1477,7 +1478,11 @@ const BottomSheetComponent = forwardRef<BottomSheetMethods, BottomSheetProps>(
14771478
useAnimatedReaction(
14781479
() => ({
14791480
_keyboardState: animatedKeyboardState.value,
1480-
_keyboardHeight: animatedKeyboardHeight.value,
1481+
_keyboardHeight:
1482+
Platform.OS === 'android' &&
1483+
android_keyboardInputMode === KEYBOARD_INPUT_MODE.adjustResize
1484+
? 0
1485+
: animatedKeyboardHeight.value,
14811486
}),
14821487
(result, _previousResult) => {
14831488
const { _keyboardState, _keyboardHeight } = result;

0 commit comments

Comments
 (0)