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

Code Example 1

<!-- Three rectangles, evenly distributed -->
<svg viewBox="0 0 100 80" width="40" height="40">
  <rect width="100" height="20"></rect>
  <rect y="30" width="100" height="20"></rect>
  <rect y="60" width="100" height="20"></rect>
</svg>

Learn ReactJs, React Native from akashmittal.com