Skip to main content

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​

PropTypeDefault
plans{ id, title, price, description?, badge? }[]Monthly and yearly (PAYWALL_PLANS)
featuresstring[]PAYWALL_FEATURES
defaultPlanstringThe first plan
onSubscribe(planId) => void | Promise<void>Required
onRestore, onClose() => voidHidden when left out
labelsPartial<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.