@umituz/react-native-subscription 2.2.45 → 2.2.47

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.2.45",
3
+ "version": "2.2.47",
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",
@@ -64,8 +64,8 @@ export const CreditsTabContent: React.FC<CreditsTabContentProps> = React.memo(
64
64
  style={{ color: tokens.colors.textSecondary }}
65
65
  >
66
66
  {displayCreditsInfoText
67
- .replace("{required}", String(requiredCredits))
68
- .replace("{current}", String(currentCredits))}
67
+ .replace("{{required}}", String(requiredCredits))
68
+ .replace("{{current}}", String(currentCredits))}
69
69
  </AtomicText>
70
70
  </View>
71
71
  )}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { useEffect } from "react";
2
2
  import { View, StyleSheet, ActivityIndicator } from "react-native";
3
3
  import { AtomicText } from "@umituz/react-native-design-system";
4
4
  import { useAppDesignTokens } from "@umituz/react-native-design-system";
@@ -27,6 +27,15 @@ export const SubscriptionPackageList: React.FC<SubscriptionPackageListProps> = R
27
27
  const hasPackages = packages.length > 0;
28
28
  const showLoading = isLoading && !hasPackages;
29
29
 
30
+ // Log state for debugging production issues
31
+ useEffect(() => {
32
+ console.log("[SubscriptionPackageList] render state:", {
33
+ isLoading,
34
+ packagesCount: packages.length,
35
+ hasSelectedPkg: !!selectedPkg,
36
+ });
37
+ }, [isLoading, packages.length, selectedPkg]);
38
+
30
39
  if (showLoading) {
31
40
  return (
32
41
  <View style={styles.centerContent}>
@@ -42,6 +51,8 @@ export const SubscriptionPackageList: React.FC<SubscriptionPackageListProps> = R
42
51
  }
43
52
 
44
53
  if (!hasPackages) {
54
+ // Log warning for debugging
55
+ console.warn("[SubscriptionPackageList] No packages available to display");
45
56
  return (
46
57
  <View style={styles.centerContent}>
47
58
  <AtomicText