@umituz/react-native-subscription 2.38.1 → 2.38.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-subscription",
3
- "version": "2.38.1",
3
+ "version": "2.38.2",
4
4
  "description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -160,29 +160,38 @@ export const PaywallScreen: React.FC<PaywallScreenProps> = React.memo((props) =>
160
160
  return (
161
161
  <PlanCard
162
162
  key={pid}
163
- package={pkg}
164
- selected={isSelected}
165
- isBestValue={isBestValue}
166
- credits={credits}
163
+ pkg={pkg}
164
+ isSelected={isSelected}
165
+ badge={isBestValue ? translations.bestValueBadgeText : undefined}
166
+ creditAmount={credits}
167
167
  creditsLabel={creditsLabel}
168
- onPress={() => setSelectedPlanId(pid)}
168
+ onSelect={() => setSelectedPlanId(pid)}
169
169
  />
170
170
  );
171
171
  })
172
172
  )}
173
173
  </View>
174
174
 
175
- {/* Footer - CTA and Legal */}
176
- <PaywallFooter
177
- selectedPlanId={selectedPlanId}
178
- packages={packages}
179
- isProcessing={isProcessing}
180
- onPurchase={handlePurchase}
181
- onRestore={handleRestore}
182
- legalUrls={legalUrls}
183
- translations={translations}
184
- onLegalUrl={handleLegalUrl}
185
- />
175
+ {/* Sticky footer always visible, never hidden behind scroll content */}
176
+ <View style={[styles.stickyFooter, { paddingBottom: Math.max(insets.bottom, 16) }]}>
177
+ <TouchableOpacity
178
+ onPress={handlePurchase}
179
+ disabled={isProcessing || isLoadingPackages || !selectedPlanId}
180
+ style={[styles.cta, { backgroundColor: tokens.colors.primary }, (isProcessing || isLoadingPackages || !selectedPlanId) && styles.ctaDisabled]}
181
+ activeOpacity={0.75}
182
+ >
183
+ <AtomicText type="titleLarge" style={[styles.ctaText, { color: tokens.colors.onPrimary }]}>
184
+ {isProcessing ? translations.processingText : translations.purchaseButtonText}
185
+ </AtomicText>
186
+ </TouchableOpacity>
187
+ <PaywallFooter
188
+ translations={translations}
189
+ legalUrls={legalUrls}
190
+ isProcessing={isProcessing}
191
+ onRestore={onRestore ? handleRestore : undefined}
192
+ onLegalClick={handleLegalUrl}
193
+ />
194
+ </View>
186
195
  </ScrollView>
187
196
  </View>
188
197
  );