mirror of
https://github.com/zhigang1992/react-native-bottom-sheet.git
synced 2026-01-12 22:50:12 +08:00
fix: sheet height on fullscreen behavior
This commit is contained in:
@@ -287,7 +287,9 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
|
||||
}
|
||||
|
||||
if (keyboardBehavior === KEYBOARD_BEHAVIOR.fullScreen) {
|
||||
return safeContainerHeight - topInset - safeHandleHeight;
|
||||
return isExtendedByKeyboard.value
|
||||
? safeContainerHeight - topInset - safeHandleHeight
|
||||
: sheetHeight;
|
||||
}
|
||||
|
||||
if (
|
||||
@@ -893,7 +895,6 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
|
||||
animatedPosition,
|
||||
keyboardState,
|
||||
keyboardHeight,
|
||||
keyboardAnimationDuration,
|
||||
animatedSheetHeight,
|
||||
animatedSheetState,
|
||||
scrollableContentOffsetY,
|
||||
|
||||
Reference in New Issue
Block a user