react-native-painter
Version:
Custom Painter Android WEB IOS
20 lines (15 loc) • 474 B
Markdown
```JS
import { Line } from 'react-native-painter'
<Painter style={styles.Painter}
>
<Line />
</Painter>
```
| Name | description | type | default |
| --- | --- | --- | --- |
| x1 | the start of the line on the x-axis. | Number | 0 |
| y1 | the start of the line on the y-axis. | Number | 0 |
| x2 | the end of the line on the x-axis. | Number | 0 |
| y2 | the end of the line on the y-axis. | Number | 0 |