# React Native paywall screen (Pro)

> A React Native paywall for iOS, Android and the web: what Pro gives, plans as radio cards with a savings badge, a free-trial button, restore purchases and renewal terms. Works with RevenueCat or any store library.

# 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.

```tsx
import { PaywallScreen } from '@patine-ui/pro';
```

```tsx live device
import { PaywallScreen } from '@patine-ui/pro';

const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

export default function Example() {
  return <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](/docs/components/radio-group), [Badge](/docs/components/badge), [Card](/docs/components/card) and [Button](/docs/components/button).

## In real apps

Every complete app has its own version of this screen, wired to its auth, data and settings: see the [templates](/templates).

## Related

- [Pricing table](./pricing-table) PRO
- [Checkout](./checkout) PRO
- [All blocks](./overview)
