@umituz/react-native-subscription 2.27.61 → 2.27.63

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.27.61",
3
+ "version": "2.27.63",
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",
@@ -75,6 +75,10 @@ export interface CreditsConfig {
75
75
  creditPackageAmounts?: Record<string, number>;
76
76
  /** Credit allocations for different subscription types (weekly, monthly, yearly) */
77
77
  packageAllocations?: PackageAllocationMap;
78
+ /** Whether to enable free credits for non-premium users */
79
+ enableFreeCredits?: boolean;
80
+ /** Number of free credits given to non-premium users */
81
+ freeCredits?: number;
78
82
  }
79
83
 
80
84
  export interface CreditsResult<T = UserCredits> {
@@ -97,10 +101,5 @@ export interface DeductCreditsResult {
97
101
 
98
102
  export const DEFAULT_CREDITS_CONFIG: CreditsConfig = {
99
103
  collectionName: "user_credits",
100
- creditLimit: 10,
101
- packageAllocations: {
102
- weekly: { credits: 10 },
103
- monthly: { credits: 25 },
104
- yearly: { credits: 200 },
105
- },
104
+ creditLimit: 0,
106
105
  };
@@ -25,4 +25,6 @@ export interface SubscriptionInitConfig {
25
25
  showAuthModal: () => void;
26
26
  onCreditsUpdated?: (userId: string) => void;
27
27
  creditPackages?: CreditPackageConfig;
28
+ timeoutMs?: number;
29
+ authStateTimeoutMs?: number;
28
30
  }