Check out example codes for "how to fix the nav bar to the left of the page". It will help you in understanding the concepts better.

Code Example 1

.sidenav {
  height: 100%;
  width: 160px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  overflow-x: hidden;
}

Learn ReactJs, React Native from akashmittal.com