@umituz/react-native-subscription 2.26.8 → 2.26.9

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.26.8",
3
+ "version": "2.26.9",
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",
@@ -20,6 +20,8 @@ export interface PremiumStatusBadgeProps {
20
20
  trialLabel?: string;
21
21
  /** Label for trial_canceled status (defaults to canceledLabel if not provided) */
22
22
  trialCanceledLabel?: string;
23
+ /** Label for free credits status (defaults to noneLabel if not provided) */
24
+ freeLabel?: string;
23
25
  }
24
26
 
25
27
  export const PremiumStatusBadge: React.FC<PremiumStatusBadgeProps> = ({
@@ -30,6 +32,7 @@ export const PremiumStatusBadge: React.FC<PremiumStatusBadgeProps> = ({
30
32
  canceledLabel,
31
33
  trialLabel,
32
34
  trialCanceledLabel,
35
+ freeLabel,
33
36
  }) => {
34
37
  const tokens = useAppDesignTokens();
35
38
 
@@ -40,6 +43,7 @@ export const PremiumStatusBadge: React.FC<PremiumStatusBadgeProps> = ({
40
43
  expired: expiredLabel,
41
44
  none: noneLabel,
42
45
  canceled: canceledLabel,
46
+ free: freeLabel ?? noneLabel,
43
47
  };
44
48
 
45
49
  const backgroundColor = useMemo(() => {
@@ -50,6 +54,7 @@ export const PremiumStatusBadge: React.FC<PremiumStatusBadgeProps> = ({
50
54
  expired: tokens.colors.error,
51
55
  none: tokens.colors.textTertiary,
52
56
  canceled: tokens.colors.warning,
57
+ free: tokens.colors.info ?? tokens.colors.primary, // Blue for free credits
53
58
  };
54
59
  return colors[status];
55
60
  }, [status, tokens.colors]);