@encorekit/react-native 1.1.19 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@ class EncoreReactSDKModule(reactContext: ReactApplicationContext) :
75
75
 
76
76
  @ReactMethod
77
77
  fun show(placementId: String, promise: Promise) {
78
- val activity = currentActivity
78
+ val activity = reactApplicationContext.currentActivity
79
79
  if (activity == null) {
80
80
  promise.reject("NO_ACTIVITY", "No current activity available")
81
81
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encorekit/react-native",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "sdkVersions": {
5
5
  "ios": {
6
6
  "EncoreKit": "1.4.34"