Check out example codes for "disable swipe to go back chrome". It will help you in understanding the concepts better.

Code Example 1

chrome://flags/#overscroll-history-navigation

Learn ReactJs, React Native from akashmittal.com