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/keyboard avoiding view #44652

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Gregoirevda
Copy link
Contributor

@Gregoirevda Gregoirevda commented May 23, 2024

Summary:

Fixes #36287
KeyboardAvoidingView will not work when mounted on a view which already has a visible keyboard

Test Plan

Open Keyboard, mount KeyboardAvoidingView and verify it's not centered.

Changelog:

[General] [Fixed] - KeyboardAvoidingView applied on mount when keyboard is shown

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels May 23, 2024
@facebook-github-bot
Copy link
Contributor

@sammy-SC has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@sammy-SC
Copy link
Contributor

Hello @Gregoirevda

the fix looks good, thanks.

Do you have a code example where I could see the bug before and verify the fixed state?

@sammy-SC
Copy link
Contributor

@Gregoirevda CI jobs are failing. Would you mind resolving those?

@Gregoirevda
Copy link
Contributor Author

Gregoirevda commented Jun 10, 2024

@sammy-SC I've made a snack which shows the issue here
Also fixed CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. 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.

Keyboard avoiding view doesn't attempt to initialize correctly when created while a keyboard is already open
3 participants