Skip to content

Commit 3998456

Browse files
committed
Fix issue with simultaneous keyboard dismiss and sheet close gorhom#1164
1 parent 54abf0c commit 3998456

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/bottomSheet/BottomSheet.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,11 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
14011401
*/
14021402
(Platform.OS === 'android' &&
14031403
keyboardBehavior === KEYBOARD_BEHAVIOR.interactive &&
1404-
android_keyboardInputMode === KEYBOARD_INPUT_MODE.adjustResize)
1404+
android_keyboardInputMode === KEYBOARD_INPUT_MODE.adjustResize) ||
1405+
/**
1406+
* if the sheet is closing, then exit then method
1407+
*/
1408+
animatedNextPositionIndex.value == -1
14051409
) {
14061410
animatedKeyboardHeightInContainer.value = 0;
14071411
return;

0 commit comments

Comments
 (0)