From 0ea199719f5c7b0b4c16a6a478e22bc6d885bd9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=98=84=EC=9A=B0?= Date: Thu, 24 Nov 2022 14:06:15 +0900 Subject: [PATCH] Update KeyboardAvoidingContainer.tsx Fix a error about ``` ERROR currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput ``` --- src/KeyboardAvoidingContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KeyboardAvoidingContainer.tsx b/src/KeyboardAvoidingContainer.tsx index c6d9580..f0b7a75 100644 --- a/src/KeyboardAvoidingContainer.tsx +++ b/src/KeyboardAvoidingContainer.tsx @@ -218,7 +218,7 @@ export function useKeyboardAvoidingContainerProps< if (keyboardLayoutRef.current) return const {endCoordinates: newKeyboardLayout} = event - const newFocusedTextInputNodeHandle = NativeTextInput.State.currentlyFocusedField() + const newFocusedTextInputNodeHandle = NativeTextInput.State.currentlyFocusedInput() const newStickyFooterNodeHandle = findNodeHandle( stickyFooterRef.current, )