Check out example codes for "how to make html modal popup". It will help you in understanding the concepts better.

Code Example 1

<style>
 #modal { position: fixed; z-index: 101; top: 33%; left: 25%; width: 50%;}
</style>
        <div id="modal">
        </div>

Learn ReactJs, React Native from akashmittal.com