Reimplement back button behavior
This commit is contained in:
parent
f87f7767ff
commit
65168cd5bf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue