diff --git a/src/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts b/src/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts index 97ea033be4..24fbf9ea7f 100644 --- a/src/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts +++ b/src/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts @@ -86,8 +86,8 @@ export const useSmoothKeyboardHandler: typeof useKeyboardHandler = ( persistedHeight.value = height.value; } }, - // REA uses own version of `DependencyList` and it's not compatible with the same type from React - deps as unknown[], + // create shallow copy (if deps specified) since `useAnimatedReaction` modifies them + deps ? [...deps] : deps, ); useKeyboardHandler(