Home > Software engineering >  How do I draw a line between two points in React Native?
How do I draw a line between two points in React Native?

Time:05-25

how to develop this kind of activity in react-native ?.
activity image

<img src="https://i.stack.imgur.com/9vTTb.png" >

CodePudding user response:

The react-native SVG library might be useful for this, can refer to it here

CodePudding user response:

The element is an SVG basic shape, used to create a line connecting two points.

<Svg height="100" width="100">
  <Line x1="0" y1="0" x2="100" y2="100" stroke="red" strokeWidth="2" />
</Svg>

For more refer here.

CodePudding user response:

You can go with this: react-native-svg

  • Related