-
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
[RNMobile] Add media inserter blocks to toolbar #51827
Conversation
Size Change: 0 B Total Size: 1.42 MB ℹ️ View Unchanged
|
Flaky tests detected in 28fbc2f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5474736122
|
packages/edit-post/src/components/header/header-toolbar/index.native.js
Outdated
Show resolved
Hide resolved
packages/edit-post/src/components/header/header-toolbar/index.native.js
Outdated
Show resolved
Hide resolved
packages/edit-post/src/components/header/header-toolbar/index.native.js
Outdated
Show resolved
Hide resolved
packages/edit-post/src/components/visual-editor/test/index.native.js
Outdated
Show resolved
Hide resolved
packages/edit-post/src/components/visual-editor/test/index.native.js
Outdated
Show resolved
Hide resolved
packages/edit-post/src/components/visual-editor/test/index.native.js
Outdated
Show resolved
Hide resolved
packages/edit-post/src/components/header/header-toolbar/index.native.js
Outdated
Show resolved
Hide resolved
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.
Hey @derekblank nice work on these changes so far! I've left a couple of comments let me know what you think.
Functionality wise, this is working as expected 🚀
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.
LGTM! Nice work! 🚀 I tested it on both iOS and Android.
# Conflicts: # packages/react-native-editor/CHANGELOG.md
What?
Adds buttons to insert media blocks (Image, Video, Gallery, Audio) from the mobile header toolbar when a block is not selected.
Why?
Allows users to quickly add media when writing a post without opening the Inserter.
How?
In the header toolbar component, this PR adds buttons for four media blocks, and allows the creation/insertion of each block directly from the toolbar.
Testing Instructions
Screenshots or screencast
Note: The "Add Blocks" inserter button, undo/redo buttons, and media icons will be modified in subsequent PRs.
Screen.Recording.2023-06-23.at.12.48.37.pm.mov