react-native-painter
Version:
Custom Painter Android WEB IOS
22 lines (16 loc) • 619 B
Markdown
Android Layer Type: S(Software < api 28 >= None), H(Hardware)
```JS
import { Painter,PainterS , PainterH } from 'react-native-painter'
<Painter style={styles.Painter}
viewBox={[0,0,24,24] } align='xMidYMid' aspect='meet'
>
//elements
</Painter>
```
| Name | description | type | default |
| --- | --- | --- | --- |
| viewBox | defines the position and dimension, in user space, of an Painter viewport. | Array[Number] (4)| undefined |
| align | the aligment | String | xMidYMid |
| aspect | the aspect ratio | String | meet |