@umituz/react-native-subscription 2.43.15 → 2.43.17
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.43.
|
|
3
|
+
"version": "2.43.17",
|
|
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",
|
|
@@ -13,6 +13,7 @@ import { PaywallFeedbackScreen } from "../../../subscription/presentation/compon
|
|
|
13
13
|
import { PaywallFeedbackTranslations } from "../../../subscription/presentation/components/feedback/PaywallFeedbackScreen.types";
|
|
14
14
|
import { PaywallTranslations, PaywallLegalUrls, SubscriptionFeature } from "../../../paywall/entities/types";
|
|
15
15
|
import { usePaywallFeedbackSubmit } from "../../../../presentation/hooks/feedback/useFeedbackSubmit";
|
|
16
|
+
import { PaywallScreen } from "../../../paywall/components/PaywallScreen";
|
|
16
17
|
|
|
17
18
|
export interface ManagedSubscriptionFlowProps {
|
|
18
19
|
children: React.ReactNode;
|
|
@@ -75,10 +76,9 @@ export interface ManagedSubscriptionFlowProps {
|
|
|
75
76
|
*/
|
|
76
77
|
import {
|
|
77
78
|
SubscriptionFlowProvider,
|
|
78
|
-
useSubscriptionFlowStatus
|
|
79
|
-
useSubscriptionFlowStore
|
|
79
|
+
useSubscriptionFlowStatus
|
|
80
80
|
} from "../providers/SubscriptionFlowProvider";
|
|
81
|
-
import { SubscriptionFlowStatus } from "../useSubscriptionFlow";
|
|
81
|
+
import { useSubscriptionFlowStore, SubscriptionFlowStatus } from "../useSubscriptionFlow";
|
|
82
82
|
|
|
83
83
|
const ManagedSubscriptionFlowInner = React.memo<ManagedSubscriptionFlowProps>(({
|
|
84
84
|
children,
|
|
@@ -187,10 +187,7 @@ const ManagedSubscriptionFlowInner = React.memo<ManagedSubscriptionFlowProps>(({
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
// We need to wrap this in a component that can use hooks
|
|
193
|
-
const InlinePaywall = () => {
|
|
190
|
+
const PostOnboardingPaywall = () => {
|
|
194
191
|
const { isPremium, isSyncing, credits } = usePremiumStatus();
|
|
195
192
|
const { packages } = usePremiumPackages();
|
|
196
193
|
const { purchasePackage, restorePurchase } = usePremiumActions();
|
|
@@ -216,7 +213,7 @@ const ManagedSubscriptionFlowInner = React.memo<ManagedSubscriptionFlowProps>(({
|
|
|
216
213
|
);
|
|
217
214
|
};
|
|
218
215
|
|
|
219
|
-
return <
|
|
216
|
+
return <PostOnboardingPaywall />;
|
|
220
217
|
}
|
|
221
218
|
|
|
222
219
|
// 3. Application Content + Overlays
|