Check out example codes for "bootstrap modal causes page shift". It will help you in understanding the concepts better.

Code Example 1

.modal-open[style] {
padding-right: 0px !important;
}

Learn ReactJs, React Native from akashmittal.com