@umituz/react-native-subscription 2.14.59 → 2.14.60

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.14.59",
3
+ "version": "2.14.60",
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",
package/src/index.ts CHANGED
@@ -324,6 +324,7 @@ export {
324
324
 
325
325
  export {
326
326
  usePaywallVisibility,
327
+ paywallControl,
327
328
  type UsePaywallVisibilityResult,
328
329
  } from "./presentation/hooks/usePaywallVisibility";
329
330
 
@@ -23,6 +23,15 @@ const setPaywallVisible = (visible: boolean): void => {
23
23
  listeners.forEach((listener) => listener());
24
24
  };
25
25
 
26
+ /**
27
+ * Direct paywall control for non-React contexts (e.g., appInitializer)
28
+ */
29
+ export const paywallControl = {
30
+ open: () => setPaywallVisible(true),
31
+ close: () => setPaywallVisible(false),
32
+ isOpen: () => paywallVisible,
33
+ };
34
+
26
35
  export interface UsePaywallVisibilityResult {
27
36
  showPaywall: boolean;
28
37
  setShowPaywall: (visible: boolean) => void;