Skip to content

Commit 0a31d6f

Browse files
authored
Merge pull request #4 from gag0712/master
fix: android build error
2 parents e0951d1 + b40be99 commit 0a31d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/exitapp/ExitAppModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ExitAppModule(reactContext: ReactApplicationContext) :
1414

1515
@ReactMethod
1616
fun exitApp() {
17-
val activity: Activity? = currentActivity
17+
val activity: Activity? = getCurrentActivity()
1818
activity?.finishAffinity()
1919
Runtime.getRuntime().exit(0)
2020
}

0 commit comments

Comments
 (0)