We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0951d1 + b40be99 commit 0a31d6fCopy full SHA for 0a31d6f
android/src/main/java/com/exitapp/ExitAppModule.kt
@@ -14,7 +14,7 @@ class ExitAppModule(reactContext: ReactApplicationContext) :
14
15
@ReactMethod
16
fun exitApp() {
17
- val activity: Activity? = currentActivity
+ val activity: Activity? = getCurrentActivity()
18
activity?.finishAffinity()
19
Runtime.getRuntime().exit(0)
20
}
0 commit comments