Created
June 14, 2016 03:05
-
-
Save sammylupt/1c482b433db139c657c3a9dc04843bd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BackAndroid.addEventListener("hardwareBackPress", () => { | |
if (navigator.getCurrentRoutes().length > 1) { | |
navigator.pop() | |
return true | |
} else { | |
return false | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment