Skip to content

Commit

Permalink
partially resolve android keyboard bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yayvery committed Mar 15, 2024
1 parent 029fcf1 commit 6c6713b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
method: 'useAnimatedReaction::OnSnapPointChange',
params: {
snapPoints,
containerHeight,
},
});

Expand Down Expand Up @@ -1479,7 +1480,11 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
useAnimatedReaction(
() => ({
_keyboardState: animatedKeyboardState.value,
_keyboardHeight: animatedKeyboardHeight.value,
_keyboardHeight:
Platform.OS === 'android' &&
android_keyboardInputMode === KEYBOARD_INPUT_MODE.adjustResize
? 0
: animatedKeyboardHeight.value,
}),
(result, _previousResult) => {
const { _keyboardState, _keyboardHeight } = result;
Expand Down

0 comments on commit 6c6713b

Please sign in to comment.