Skip to content

Commit

Permalink
fix: crash on swipe down (#1367)(by @beqramo)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Jun 4, 2023
1 parent 9c1605a commit 3ccbefc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useGestureEventsHandlersDefault.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const INITIAL_CONTEXT: GestureEventContextType = {
isScrollablePositionLocked: false,
};

const dismissKeyboardOnJs = runOnJS(Keyboard.dismiss);
const dismissKeyboard = Keyboard.dismiss;

const resetContext = (context: any) => {
'worklet';
Expand Down Expand Up @@ -320,7 +320,7 @@ export const useGestureEventsHandlersDefault: GestureEventsHandlersHookType =
absoluteY > WINDOW_HEIGHT - animatedKeyboardHeight.value
)
) {
dismissKeyboardOnJs();
runOnJS(dismissKeyboard)();
}
}

Expand Down

0 comments on commit 3ccbefc

Please sign in to comment.