Examples
Paywall Pro
What the subscription gives, the plans as radio cards with a savings badge, a free-trial button that says what happens next, Restore purchases, and the renewal terms App Review asks for. It doesn't talk to a store itself: onSubscribe gets the plan's id, so it works with RevenueCat or any library.
import { PaywallScreen } from '@patine-ui/pro';
Loading…
<PaywallScreen onSubscribe={() => wait(900)} onRestore={() => {}} onClose={() => {}} />
Make it yours
| Prop | Type | Default |
|---|---|---|
plans | { id, title, price, description?, badge? }[] | Monthly and yearly (PAYWALL_PLANS) |
features | string[] | PAYWALL_FEATURES |
defaultPlan | string | The first plan |
onSubscribe | (planId) => void | Promise<void> | Required |
onRestore, onClose | () => void | Hidden when left out |
labels | Partial<PaywallLabels> | English |
Built from the free RadioGroup, Badge, Card and Button.
In real apps
Every complete app has its own version of this screen, wired to its auth, data and settings: see the templates.
Related
- Pricing table PRO
- Checkout PRO
- All blocks