react-native-purchases-ui 10.2.0 → 10.2.2

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.
@@ -17,6 +17,6 @@ Pod::Spec.new do |spec|
17
17
  spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
18
18
 
19
19
  spec.dependency "React-Core"
20
- spec.dependency "PurchasesHybridCommonUI", '18.8.0'
20
+ spec.dependency "PurchasesHybridCommonUI", '18.10.0'
21
21
  spec.swift_version = '5.7'
22
22
  end
@@ -59,7 +59,7 @@ android {
59
59
  minSdkVersion getExtOrIntegerDefault("minSdkVersion")
60
60
  targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
61
61
  versionCode 1
62
- versionName '10.2.0'
62
+ versionName '10.2.2'
63
63
  }
64
64
 
65
65
  buildTypes {
@@ -91,7 +91,7 @@ dependencies {
91
91
  //noinspection GradleDynamicVersion
92
92
  implementation "com.facebook.react:react-native:+"
93
93
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
94
- implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:18.8.0'
94
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:18.10.0'
95
95
  implementation 'androidx.compose.ui:ui-android:1.5.4'
96
96
  implementation "androidx.appcompat:appcompat:1.6.1"
97
97
  }
@@ -20,6 +20,17 @@
20
20
 
21
21
  RCT_EXPORT_MODULE();
22
22
 
23
+ // Required for RN 0.79+ NativeEventEmitter (JavaScript class) support.
24
+ // RCT_EXPORT_METHOD must re-export these explicitly; parent class methods are not visible to JS.
25
+ // See: https://github.com/RevenueCat/react-native-purchases/issues/1298
26
+ RCT_EXPORT_METHOD(addListener:(NSString *)eventName) {
27
+ [super addListener:eventName];
28
+ }
29
+
30
+ RCT_EXPORT_METHOD(removeListeners:(double)count) {
31
+ [super removeListeners:count];
32
+ }
33
+
23
34
  - (instancetype)initWithDisabledObservation
24
35
  {
25
36
  if ((self = [super initWithDisabledObservation])) {
package/ios/RNPaywalls.m CHANGED
@@ -19,6 +19,17 @@
19
19
 
20
20
  RCT_EXPORT_MODULE();
21
21
 
22
+ // Required for RN 0.79+ NativeEventEmitter (JavaScript class) support.
23
+ // RCT_EXPORT_METHOD must re-export these explicitly; parent class methods are not visible to JS.
24
+ // See: https://github.com/RevenueCat/react-native-purchases/issues/1298
25
+ RCT_EXPORT_METHOD(addListener:(NSString *)eventName) {
26
+ [super addListener:eventName];
27
+ }
28
+
29
+ RCT_EXPORT_METHOD(removeListeners:(double)count) {
30
+ [super removeListeners:count];
31
+ }
32
+
22
33
  - (instancetype)initWithDisabledObservation
23
34
  {
24
35
  if ((self = [super initWithDisabledObservation])) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-purchases-ui",
3
3
  "title": "React Native Purchases UI",
4
- "version": "10.2.0",
4
+ "version": "10.2.2",
5
5
  "description": "React Native in-app purchases and subscriptions made easy. Supports iOS and Android.",
6
6
  "main": "lib/commonjs/index",
7
7
  "module": "lib/module/index",
@@ -77,7 +77,7 @@
77
77
  "peerDependencies": {
78
78
  "react": "*",
79
79
  "react-native": ">= 0.73.0",
80
- "react-native-purchases": "10.2.0",
80
+ "react-native-purchases": "10.2.2",
81
81
  "react-native-web": "*"
82
82
  },
83
83
  "peerDependenciesMeta": {
@@ -124,6 +124,6 @@
124
124
  ]
125
125
  },
126
126
  "dependencies": {
127
- "@revenuecat/purchases-typescript-internal": "18.8.0"
127
+ "@revenuecat/purchases-typescript-internal": "18.10.0"
128
128
  }
129
129
  }