Код: Выделить всё
BackHandler.addEventListener("hardwareBackPress", () => {
if (this.navigator && this.navigator.getCurrentRoutes().length > 1){this.navigator.pop()
return true // do not exit app
} else {
return false // exit app
}})
[img]https:// i.sstatic.net/Xe5JQl.png[/img]
Подробнее здесь: https://stackoverflow.com/questions/442 ... ot-working