Check out example codes for "do not close dialog box when click outside bootstrap modal". It will help you in understanding the concepts better.

Code Example 1

<div id="idModal" class="modal hide" data-backdrop="static" data-keyboard="false">

Learn ReactJs, React Native from akashmittal.com