Check out example codes for "svg line". It will help you in understanding the concepts better.

Code Example 1

<svg height="210" width="500">

 
<line x1="0" y1="0" x2="200" y2="200"
style="stroke:rgb(255,0,0);stroke-width:2" />

</svg>

Learn ReactJs, React Native from akashmittal.com