Check out example codes for "hide the scrollbar in css if not overflow". It will help you in understanding the concepts better.

Code Example 1

.myClass {
  /*auto will remove and add the scroll bar as needed*/
  overflow: auto;
}

Learn ReactJs, React Native from akashmittal.com