-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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] Adding WPMediaLibrary source to File block #26960
Conversation
Size Change: 0 B Total Size: 1.2 MB ℹ️ View Unchanged
|
e777c4b
to
cbd7358
Compare
d5a7304
to
92220ed
Compare
@guarani could you please take a look at the iOS side changes? Thanks! 🙏 |
packages/react-native-editor/ios/GutenbergDemo/GutenbergViewController.swift
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.
Looking good from the iOS side (I didn't test Android), left some comments, but no blockers.
packages/react-native-editor/ios/GutenbergDemo/GutenbergViewController.swift
Outdated
Show resolved
Hide resolved
17b0e96
to
657ac52
Compare
Thank you for the review @guarani. I have also updated the Android native side (cc @jd-alexander ) |
Hi @etoledom I updated the media source picker's title and added an icon for the "Choose from device" option that displays an icon on Android.
Here, we have two variations of the button label for using a file from the device. Should we be using.
I opted for "Choose from device" because it's used for the other blocks. Let me know what you think. Even though this solution works I noticed that the "Choose from device" option for the File block is below the WP media option but for the other blocks, it's the first option. Below is a clear example.
This a minor thing. I looked at the code and it seems the internal sources eg. WP Media Library is appended to the other media options which we have provided hence the ordering. Should we modify this in any way? |
…ntroller.swift Co-authored-by: Paul Von Schrottky <[email protected]>
d2f7401
to
a932bfa
Compare
We should use |
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.
The behavior works as expected based on the tests that were conducted on both platforms. LGTM 🚢
Description
gutenberg-mobile
: wordpress-mobile/gutenberg-mobile#2805WPiOS
: wordpress-mobile/WordPress-iOS#15291WPAndroid
: wordpress-mobile/WordPress-Android#13413This PR adds the WordPress Media Library as a media source for File block.
How has this been tested?
Choose a file
.WordPress Media Library
is present.WordPress.zip
file has been added to the block.Screenshots
Types of changes
Checklist: