From 29cfd0108ab346c7a646a5d522c560559f758848 Mon Sep 17 00:00:00 2001 From: Jim <47636074+SalehAkaJim@users.noreply.github.com> Date: Wed, 8 Jul 2026 23:26:38 +0330 Subject: [PATCH] FIX --- .../reactnativepoolakey/ReactNativePoolakeyModule.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/cafebazaar/reactnativepoolakey/ReactNativePoolakeyModule.kt b/android/src/main/java/com/cafebazaar/reactnativepoolakey/ReactNativePoolakeyModule.kt index a9aa802..23c75d8 100644 --- a/android/src/main/java/com/cafebazaar/reactnativepoolakey/ReactNativePoolakeyModule.kt +++ b/android/src/main/java/com/cafebazaar/reactnativepoolakey/ReactNativePoolakeyModule.kt @@ -96,7 +96,7 @@ class ReactNativePoolakeyModule(reactContext: ReactApplicationContext) : ReactCo promise: Promise ) { - check(currentActivity != null) { + check(reactApplicationContext.currentActivity != null) { "currentActivity is null" } @@ -120,7 +120,7 @@ class ReactNativePoolakeyModule(reactContext: ReactApplicationContext) : ReactCo promise: Promise ) { - check(currentActivity != null) { + check(reactApplicationContext.currentActivity != null) { "currentActivity is null" }