How To Disable Swipe Back Functionality With React Navigation

This week I’ve been building custom OAuth implementation in React Native. One obstacle I’ve encountered was that the user was able to swipe back to e.g. loading screen.

I’ve found the solution and I want to share with you how to accomplish this with React Navigation.

This is the original solution posted by Matteo Mazzarolo.