Image as a mask for another image not rendering on Android
See original GitHub issueBug report
Summary
Trying to apply some image shape masking using .png image. Everything works as expected on iOS, but android doesn’t render anything, just empty. If i try to replace image mask with text, android works as expected, problem exist if use image as a mask element.
Image used for masking:
And result:
Environment info
react-native info
output:
System:
OS: macOS 10.15.5
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 112.46 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.7.0 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.14.7 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 29
Build Tools: 27.0.3, 28.0.3, 29.0.2, 29.0.3
System Images: android-29 | Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
Xcode: 11.3/11C29 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_201 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.2 => 0.63.2
npmGlobalPackages:
*react-native*: Not Found
Library version: ^0.1.10
Reproducible sample code
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12
Top Results From Across the Web
Image as a mask for another image not rendering on Android
Trying to apply some image shape masking using .png image. Everything works as expected on iOS, but android doesn't render anything, just empty....
Read more >Android Image Masking not rendering as intended
UPDate : I tried the mask Image from the blog post with my own JPEG .IT works perfect so the issue is narrowed...
Read more >Image as a mask for another image not rendering on Android -
Trying to apply some image shape masking using .png image. Everything works as expected on iOS, but android doesn't render anything, just empty....
Read more >2 issues: Android masking bug and default button/panel images not ...
The button was still visible/active, just not the "background sprite" of it. Swapping the sprite out for a different one and having that...
Read more >mask - CSS: Cascading Style Sheets - MDN Web Docs
The mask CSS shorthand property hides an element (partially or fully) by masking or clipping the image at specific points.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
for me it’s work with resizeMode=‘cover’ and ‘repeat’ and doesn’t work with other resizeMode …
So basically it’s not Image component or SVG Images Component but more like SVG component like path, rectangle, etc. Okay.