-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix how KeyboardAvoidingView handles the onLayout prop. #32609
Conversation
@philIip has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good, thanks for working on this! can you update the test plan with a before / after video? thanks!
Thanks @philIip, I've updated the Test Plan with before and after screen caps 👍 |
@JeffreyHyer can you rebase and resubmit? i will go for the land. |
@philIip Just rebased, should be good to merge. |
@philIip has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Resolves facebook#32608 This PR updates the `KeyboardAvoidingView` to correctly handle the `onLayout` prop. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [General] [Fixed] - `onLayout` prop is handled correctly in `<KeyboardAvoidingView>` Pull Request resolved: facebook#32609 Test Plan: | Current Behavior with the `onLayout` prop specified | After applying fix | |---|---| | ![Simulator Screen Recording - iPhone 11 - 2021-11-17 at 14 44 09](https://user-images.githubusercontent.com/1406082/142287541-0dbcf137-4d72-4ab6-9367-ac42bdf5aed9.gif) | ![Simulator Screen Recording - iPhone 11 - 2021-11-17 at 14 44 28](https://user-images.githubusercontent.com/1406082/142287611-c7424a6c-b590-48f7-8d74-e96543eab41c.gif) | Reviewed By: kacieb Differential Revision: D32481315 Pulled By: philIip fbshipit-source-id: 2f65440f4996152e4133211136f2920026149ee9
Summary
Resolves #32608
This PR updates the
KeyboardAvoidingView
to correctly handle theonLayout
prop.Changelog
[General] [Fixed] -
onLayout
prop is handled correctly in<KeyboardAvoidingView>
Test Plan
onLayout
prop specified