Skip to content

Commit afb2f9f

Browse files
committed
fix: fixed keyboard dismissing issue with Reanimated v3 (gorhom#1346)
fix: crash on swipe down (gorhom#1367)
1 parent 4ffdf5c commit afb2f9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hooks/useGestureEventsHandlersDefault.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const INITIAL_CONTEXT: GestureEventContextType = {
3131
isScrollablePositionLocked: false,
3232
};
3333

34+
const dismissKeyboard = Keyboard.dismiss;
35+
3436
const resetContext = (context: any) => {
3537
'worklet';
3638

@@ -319,7 +321,7 @@ export const useGestureEventsHandlersDefault: GestureEventsHandlersHookType =
319321
absoluteY > WINDOW_HEIGHT - animatedKeyboardHeight.value
320322
)
321323
) {
322-
runOnJS(Keyboard.dismiss)();
324+
runOnJS(dismissKeyboard)();
323325
}
324326
}
325327

0 commit comments

Comments
 (0)