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

[iOS] Fabric: Fixes Modal snapshot when closing it #48252

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

Conversation

zhongwuzw
Copy link
Contributor

Summary:

Fixes #48245 . The reason is we reuse the modal component and also reuse the snapshot of previous modal.

Changelog:

[IOS] [FIXED] - Fabric: Fixes Modal snapshot when closing it

Test Plan:

Repro repo please see Fixes #48245

@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 Dec 13, 2024
@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 Dec 13, 2024
@zhongwuzw
Copy link
Contributor Author

@cortinico Hi, can you help to review this? :)

@cortinico cortinico requested a review from cipolleschi January 2, 2025 11:32
@facebook-github-bot
Copy link
Contributor

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

@cipolleschi
Copy link
Contributor

Thanks @zhongwuzw for working on this. Unfortunately we might not be able to land this fix: this was how the code was before we moved the creation of the snapshot, but it was creating performance issues with the present/dismiss animations in our apps, that's why we had to move the code around.

We are aware that the current situation is not optimal, but we are investigating alternative ways to handle this.

@zhongwuzw
Copy link
Contributor Author

@cipolleschi Hi, thanks for the review, I saw the history of this , did you mean this commit zhongwuzw@30d6251 ? I think maybe my changes not much difference with current implementation, and also only snapshot once when dismiss modal.

@cipolleschi
Copy link
Contributor

Yes, that was the original change.
I can try your fix and see how it behave, but if it degrades the animation performance we would have to revert it. :(

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.

[0.76.5] Modal glitchy behavior on iOS
3 participants