Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Fix how KeyboardAvoidingView handles the onLayout prop. #32609

wants to merge 1 commit into from

Conversation

JeffreyHyer
Copy link

@JeffreyHyer JeffreyHyer commented Nov 16, 2021

Summary

Resolves #32608

This PR updates the KeyboardAvoidingView to correctly handle the onLayout prop.

Changelog

[General] [Fixed] - onLayout prop is handled correctly in <KeyboardAvoidingView>

Test Plan

Current Behavior with the onLayout prop specified After applying fix
Simulator Screen Recording - iPhone 11 - 2021-11-17 at 14 44 09 Simulator Screen Recording - iPhone 11 - 2021-11-17 at 14 44 28

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 16, 2021
@JeffreyHyer JeffreyHyer marked this pull request as ready for review November 16, 2021 22:18
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Nov 16, 2021
@facebook-github-bot
Copy link
Contributor

@philIip has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@philIip philIip left a 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!

@JeffreyHyer
Copy link
Author

Thanks @philIip, I've updated the Test Plan with before and after screen caps 👍

@philIip
Copy link
Contributor

philIip commented Nov 23, 2021

@JeffreyHyer can you rebase and resubmit? i will go for the land.

@JeffreyHyer
Copy link
Author

@philIip Just rebased, should be good to merge.

@facebook-github-bot
Copy link
Contributor

@philIip has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 24, 2021
@facebook-github-bot
Copy link
Contributor

@philIip merged this pull request in 9c5e177.

nawbc pushed a commit to NawbExplorer/react-native that referenced this pull request Dec 7, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyboardAvoidingView does not handle the onLayout prop correctly
4 participants