react-native-purchases-ui 8.2.4 → 8.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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", '13.5.1'
20
+ spec.dependency "PurchasesHybridCommonUI", '13.7.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 '8.2.4'
62
+ versionName '8.2.5'
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:13.5.1'
94
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:13.7.0'
95
95
  implementation 'androidx.compose.ui:ui-android:1.5.4'
96
96
  implementation "androidx.appcompat:appcompat:1.6.1"
97
97
  }
@@ -25,11 +25,16 @@ internal class PaywallFooterViewManager : BasePaywallViewManager<PaywallFooterVi
25
25
  }
26
26
 
27
27
  private val measureAndLayout = Runnable {
28
- measure(
29
- MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
30
- MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)
31
- )
32
- layout(left, top, right, bottom)
28
+ // It's possible the view has been detached at this point which can cause issues
29
+ // since the viewModel is not available anymore. We don't really need to remeasure
30
+ // in this case.
31
+ if (isAttachedToWindow) {
32
+ measure(
33
+ MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
34
+ MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)
35
+ )
36
+ layout(left, top, right, bottom)
37
+ }
33
38
  }
34
39
 
35
40
  // This is needed so it measures correctly the size of the children and react native can
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": "8.2.4",
4
+ "version": "8.2.5",
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",
@@ -114,7 +114,7 @@
114
114
  ]
115
115
  },
116
116
  "dependencies": {
117
- "@revenuecat/purchases-typescript-internal": "13.5.1",
118
- "react-native-purchases": "8.2.4"
117
+ "@revenuecat/purchases-typescript-internal": "13.7.0",
118
+ "react-native-purchases": "8.2.5"
119
119
  }
120
120
  }