Skip to content

Commit 3ccbefc

Browse files
committed
fix: crash on swipe down (#1367)(by @beqramo)
1 parent 9c1605a commit 3ccbefc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/useGestureEventsHandlersDefault.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const INITIAL_CONTEXT: GestureEventContextType = {
3131
isScrollablePositionLocked: false,
3232
};
3333

34-
const dismissKeyboardOnJs = runOnJS(Keyboard.dismiss);
34+
const dismissKeyboard = Keyboard.dismiss;
3535

3636
const resetContext = (context: any) => {
3737
'worklet';
@@ -320,7 +320,7 @@ export const useGestureEventsHandlersDefault: GestureEventsHandlersHookType =
320320
absoluteY > WINDOW_HEIGHT - animatedKeyboardHeight.value
321321
)
322322
) {
323-
dismissKeyboardOnJs();
323+
runOnJS(dismissKeyboard)();
324324
}
325325
}
326326

0 commit comments

Comments
 (0)