-
Notifications
You must be signed in to change notification settings - Fork 4k
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][FIX] Cover block background when there's a video is totally black #21508
Conversation
Size Change: 0 B Total Size: 904 kB ℹ️ View Unchanged
|
hey @mkevins could you review this one? |
Yes 👍 |
Hi @dratwas 👋 😃 This looks good from a code perspective. For some reason, I see slightly darker colors in dark mode compared to the placeholder:
Is this expected / do you see the same? Other than that, it's working as expected. 👍 |
Hey @mkevins , it is the same for the image. This is darker because of the overlay that is set to 50%. We could hide the overlay while the video/image is loading as well. WDYT? |
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 @mkevins , it is the same for the image. This is darker because of the overlay that is set to 50%. We could hide the overlay while the video/image is loading as well. WDYT?
Ah, that makes sense! Since it's the same for image, I think it is good the way it is (especially since the loading background color was not considered an issue for image). Nice work!
Description
Fixes wordpress-mobile/gutenberg-mobile#2104
Gutenberg-mobile PR - wordpress-mobile/gutenberg-mobile#2146
The Video component from
react-native-video
has a black background on Android even if i set thebackgroundColor
in style. In this PR I hide the Video component until the video is loaded.How has this been tested?
Screenshots
Types of changes
Fix black background while the video is loading
Checklist: