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 dialogs not responding to changes in content height #7413

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Jan 9, 2025

The dialogs were updating state that changed the native module's props, then immediately triggering an imperative function. I believe this was causing race conditions, with the update function being called before the new state had the chance to render. We simply add a timeout to delay the function call until after the component renders

This improves iOS, but doesn't seem to have helped much with Android - that just seems equally janky as before. Longer timeouts don't work either, so I'm thinking there's some deeper problem at play

Before

Simulator.Screen.Recording.-.iPhone.16.-.2025-01-09.at.17.42.40.mp4

After

Simulator.Screen.Recording.-.iPhone.16.-.2025-01-09.at.17.42.09.mp4

Copy link

github-actions bot commented Jan 9, 2025

Old size New size Diff
6.86 MB 6.86 MB 0 B (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants