react-native-masked-viewMasked View Component for React. Just like a
<View />with a mask.
compatibilityThe latest version is compatible with firstname.lastname@example.org
npm install react-native-masked-view
var MaskedView = require('react-native-masked-view');
... then have a look at these instructions and adjust accordingly.
maskImage: File name of image asset added to Images.xcassets.
note: since email@example.com the MaskedView element cannot have it's own backgroundColor, but it's children can.
demoJust clone this repo,
npm install. Then open
MaskedViewDemo.xcodeprojand click run.
- add more sizing options
- add various mask sources: shape, svg, other layers
maskSourceprop that works just like