Check out example codes for "jquery hide scrollbar but allow scrolling". It will help you in understanding the concepts better.

Code Example 1

/*For Webkit browsers e.g Chrome, Opera,Edge and safari*/
*::-webkit-scrollbar{
  display: none;
}
/*For firefox */
body{
  scrollbar-width: transparent;
}

Learn ReactJs, React Native from akashmittal.com