From bd87cae441306ebbda4e9717fd4cc895e9dc07be Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Tue, 26 Nov 2024 10:39:35 +0100 Subject: [PATCH] fix: incorrect `KeyboardStickyView` state when keyboard animation interrupted --- src/animated.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/animated.tsx b/src/animated.tsx index 6aca715d6c..0caa105fd5 100644 --- a/src/animated.tsx +++ b/src/animated.tsx @@ -169,6 +169,11 @@ export const KeyboardProvider = ({ updateSharedValues(event, ["android", "ios"]); }, + onKeyboardMoveEnd: (event: NativeEvent) => { + "worklet"; + + updateSharedValues(event, ["android"]); + }, }, [], ); @@ -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}