-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Mobile] - Refactor gallery - Cleanup #32382
[Mobile] - Refactor gallery - Cleanup #32382
Conversation
I believe this was inadvertantly removed in some earlier commits, so this commit adds it back.
These flags allow for a slightly more flexible, performant, and terse way of branching by platform. For more details, see: #18058 (comment)
This is necessary for unit tests, because they instantiate the block's edit component directly, and so the default context is not provided.
Size Change: +100 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
…rnmobile/refactor/gallery-as-nested-image-blocks-cleanup
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.
Great work @mkevins 👍
Thank you for taking care of this. I tested it running metro and everything works as expected and looks in sync with the web 🎉
Thought in draft I'm approving this now. I can recheck if extra tweaks are needed as discussed.
This will be reverted once the block settings are fetched from the REST API. This is enabled for now for testing purposes.
This brings the same change from this PR: #31027 which may have missed the deprecated hook in the refactor PR, since it hadn't landed yet.
…rnmobile/refactor/gallery-as-nested-image-blocks-cleanup
…rnmobile/refactor/gallery-as-nested-image-blocks-cleanup
This reverts commit 6fbaed9.
Thank you for reviewing and testing @antonis 👍 |
Related PRs
Description
This PR takes care of some "cleanup" issues, left over from the previous PRs. It adds some props / styles that were inadvertantly removed in prior PRs, and also resumes rendering of the loading spinner for imageSizeOptions on web, which we do not display on mobile.
How has this been tested?
The web gallery (both the old version and the new one) should render and behave exactly the same as they do in the main web gallery PR. In particular, the loading spinner should be present in the controls when the imageSizeOptions are still loading.
Mobile gallery should behave the same as the main mobile PR, and should not result in changes in rendering for other blocks that use the block list, and utilize contentResizeMode 'stretch'.
Note: This also brings in a small addition to the Platform module, discussed here.
Checklist:
*.native.js
files for terms that need renaming or removal).