Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 632 Bytes

mask.md

File metadata and controls

32 lines (23 loc) · 632 Bytes

Mask

A mask is defined with a ‘Mask’ element. A mask is used referenced using the ‘name’ property.

The element must be at the top of the painter as first elements.

  import { Mask } from 'react-native-painter'
    <Painter style={styles.Painter} 
    >       
       //top
        <Mask name="myMask" >
            <Line />
        </Mask>   
        //bottom
        <Line mask="myMask"/>
        <Line />
        <Line />
        <Line />
        <Line />

    </Painter>

Props

Name description type default
name Not animatable String undefined