Files
notesnook/apps/mobile/patches/react-native-iap+13.0.4.patch
Abdullah Atta 3de225f7c9 mobile: upgrade react native 0.82
this commit also bump app version to 3.3.10-beta.0
2025-11-27 11:32:50 +05:00

14 lines
791 B
Diff

diff --git a/node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt b/node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt
index 70149d2..fc917f3 100644
--- a/node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt
+++ b/node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt
@@ -604,7 +604,7 @@ class RNIapModule(
isOfferPersonalized: Boolean, // New parameter in V5
promise: Promise,
) {
- val activity = currentActivity
+ val activity = reactApplicationContext.currentActivity
if (activity == null) {
promise.safeReject(PromiseUtils.E_UNKNOWN, "getCurrentActivity returned null")
return