Skip to content

Commit

Permalink
fix: incorrect KeyboardStickyView state when keyboard animation int…
Browse files Browse the repository at this point in the history
…errupted
  • Loading branch information
kirillzyusko committed Nov 26, 2024
1 parent a300735 commit bd87cae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/animated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ export const KeyboardProvider = ({

updateSharedValues(event, ["android", "ios"]);
},
onKeyboardMoveEnd: (event: NativeEvent) => {
"worklet";

updateSharedValues(event, ["android"]);
},
},
[],
);
Expand Down Expand Up @@ -213,6 +218,7 @@ export const KeyboardProvider = ({
onKeyboardMoveStart={OS === "ios" ? onKeyboardMove : undefined}
onKeyboardMove={OS === "android" ? onKeyboardMove : undefined}
onKeyboardMoveInteractive={onKeyboardMove}
onKeyboardMoveEnd={OS === "android" ? onKeyboardMove : undefined}
onFocusedInputLayoutChangedReanimated={inputLayoutHandler}
>
{children}
Expand Down

0 comments on commit bd87cae

Please sign in to comment.