-
Notifications
You must be signed in to change notification settings - Fork 58
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
Issue/1851 insert captions #2156
Conversation
# Conflicts: # gutenberg
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.
Reviewed and tested the iOS parts and it looks good 👍 The video caption is not inserted but I guess it's not required in this case.
I actually checked on the web GB , and it's also not inserted there. |
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.
Tested on Android, LGTM. Thanks for adding the WP samples for testing. I'll check the wpandroid PR.
|
||
import java.util.Locale; | ||
|
||
public class Media implements RNMedia { |
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.
I wish we had the kotlin dependency setup to reduce this to 4 LoCs :)
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.
Transformed the wish to a ticket 🤷♂️ #2203
# Conflicts: # gutenberg
# Conflicts: # gutenberg
Fixes #1851
This PR adds the caption info to the Media object that is sent between the bridge and the JS code.
I also use this opportunity to add Stub image inserters for the Media Library in Android demo app to allow to test this functionality.
Gutenberg PR: WordPress/gutenberg#21611
WP-iOS PR: wordpress-mobile/WordPress-iOS#13903
WP-Android PR: wordpress-mobile/WordPress-Android#11670
To test:
PR submission checklist:
RELEASE-NOTES.txt
if necessary.