callstack / callstack/masked-view
Mask not working with a stretched image
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 131
- PR merge metrics
- No merged PRs in 30d
Description
I'm using "@react-native-community/masked-view" v0.1.10 (I can't install @react-native-masked-view/masked-view" because the other one is a dependency of react-navigation). I'm trying to make a mask using a transparent image, but it's not working in all devices when the image resizeMode is set to 'stretch'.
We tested it in the following device and it works fine:
**Samsung Galaxy A5 - Android 6.0.1 (Marshmallow)**
It was also tested it in the following devices and none of them work:
**Samsung Galaxy A5 - Android 8 (Oreo)
Samsung Galaxy Tab A - Android 10
Google pixel 3XL - Android 11**
However, using resizeMode 'cover' works fine in all devices, but it's not what I need.
Is there a workaround for this? Was this fixed in a more recent version of the plugin?
Here's the code:
```
}>
```
styles.contentMask only has "width: 100%, height: 100%".
Contributor guide
Assessment
This issue has not been assessed yet.