-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46513 from margelo/fix/44514-kav-from-keyboard-co…
…ntroller fix: use `KeyboardAvoidingView` from keyboard controller
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
patches/react-native-keyboard-controller+1.12.2+002+keyboard-avoiding-view.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/node_modules/react-native-keyboard-controller/src/components/KeyboardAvoidingView/hooks.ts b/node_modules/react-native-keyboard-controller/src/components/KeyboardAvoidingView/hooks.ts | ||
index 676eafc..6d84beb 100644 | ||
--- a/node_modules/react-native-keyboard-controller/src/components/KeyboardAvoidingView/hooks.ts | ||
+++ b/node_modules/react-native-keyboard-controller/src/components/KeyboardAvoidingView/hooks.ts | ||
@@ -33,6 +33,10 @@ export const useKeyboardAnimation = () => { | ||
|
||
isClosed.value = e.height === 0; | ||
|
||
+ if (e.height > 0) { | ||
+ heightWhenOpened.value = e.height; | ||
+ } | ||
+ | ||
// `height` update happens in `onMove` handler | ||
// in `onEnd` we need to update only if `onMove` | ||
// wasn't called (i. e. duration === 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters