-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-keyboard-avoiding-scroll-view@1.0.1 for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-keyboard-avoiding-scroll-view/dist/KeyboardAvoidingContainer.js b/node_modules/react-native-keyboard-avoiding-scroll-view/dist/KeyboardAvoidingContainer.js
index fadc258..a72fd7d 100644
--- a/node_modules/react-native-keyboard-avoiding-scroll-view/dist/KeyboardAvoidingContainer.js
+++ b/node_modules/react-native-keyboard-avoiding-scroll-view/dist/KeyboardAvoidingContainer.js
@@ -111,7 +111,7 @@ export function useKeyboardAvoidingContainerProps({ stickyFooter, containerStyle
if (keyboardLayoutRef.current)
return;
const { endCoordinates: newKeyboardLayout } = event;
- const newFocusedTextInputNodeHandle = NativeTextInput.State.currentlyFocusedField();
+ const newFocusedTextInputNodeHandle = NativeTextInput.State.currentlyFocusedInput();
const newStickyFooterNodeHandle = findNodeHandle(stickyFooterRef.current);
const [newFocusedTextInputLayout, newStickyFooterLayout,] = await Promise.all([
newFocusedTextInputNodeHandleThis issue body was partially generated by patch-package.
mikaelholm
Metadata
Metadata
Assignees
Labels
No labels