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

Code Example 1

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

 
<polygon points="200,10 250,190 160,210"
style="fill:lime;stroke:purple;stroke-width:1" />

</svg>

Learn ReactJs, React Native from akashmittal.com