Check out example codes for "vertical bar in html". It will help you in understanding the concepts better.

Code Example 1

#verticle-line {
  width: 1px;
  min-height: 400px;
  background: red;
}
<div id="verticle-line"></div>

Learn ReactJs, React Native from akashmittal.com