@umituz/react-native-subscription 2.27.36 → 2.27.37

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.36",
3
+ "version": "2.27.37",
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",
@@ -37,20 +37,11 @@ function buildSuccessResult(deps: InitializerDeps, customerInfo: any, offerings:
37
37
  return { success: true, offering: offerings.current, hasPremium };
38
38
  }
39
39
 
40
- function isNativeModuleAvailable(): boolean {
41
- return typeof Purchases?.configure === 'function';
42
- }
43
-
44
40
  export async function initializeSDK(
45
41
  deps: InitializerDeps,
46
42
  userId: string,
47
43
  apiKey?: string
48
44
  ): Promise<InitializeResult> {
49
- if (!isNativeModuleAvailable()) {
50
- if (__DEV__) console.log('[RevenueCat] Native module not available (Expo Go)');
51
- return { success: false, offering: null, hasPremium: false };
52
- }
53
-
54
45
  if (deps.isInitialized() && deps.getCurrentUserId() === userId) {
55
46
  try {
56
47
  const [customerInfo, offerings] = await Promise.all([