Check out example codes for "scroll to a div using href". It will help you in understanding the concepts better.

Code Example 1

<a href="#google"></a>

<div id="google"></div>

Learn ReactJs, React Native from akashmittal.com