Reimplement back button behavior

This commit is contained in:
Diego Mello 2024-04-16 16:22:03 -03:00
parent f87f7767ff
commit 65168cd5bf
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ class MainActivity : ReactActivity() {
super.onCreate(null)
}
override fun invokeDefaultOnBackPressed() {
moveTaskToBack(true)
}
// from react-native-orientation
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)