Kinetik UI

Paywall

.md

A subscription screen: a glowing mark, a self-advancing feature carousel and swipeable plan cards.

v2.0.0Live on webreact-native-reanimatedreact-native-safe-area-contextreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add paywall

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/paywall.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-safe-area-context react-native-worklets
  2. Copy the source files
    • components/kinetik/screens/paywall.tsx
    View source files

Usage

import { Paywall } from '@/components/kinetik/screens/paywall';

<Paywall
  title="Days Pro"
  plans={[
    {
      id: 'annual',
      title: 'Annual Plan',
      description: 'Save more with the annual plan.',
      price: 5.99,
      period: 'year',
      badge: 'Best value',
      trialDays: 3,
    },
    { id: 'monthly', title: 'Monthly Plan', price: 1.99, period: 'month' },
  ]}
  features={[
    { key: 'workdays', title: 'Work days countdown', body: 'Know how many workdays are left.' },
    { key: 'widgets', title: 'Home screen widgets', body: 'Your next date, always in sight.' },
  ]}
  onPurchase={(plan) => purchases.buy(plan.id)}
  onRestore={() => purchases.restore()}
  onClose={() => router.back()}
  onTerms={() => openURL(TERMS)}
  onPrivacy={() => openURL(PRIVACY)}
/>;

onPurchase may return a promise: that plan's button shows a spinner until it settles, reads "You’re all set" when it resolves and returns to normal if it rejects.

When to use

  • A dedicated upgrade screen opened from a locked feature, settings or the end of onboarding.
  • Two or three plans, each explained on its own card.

When not to use

  • Before people have seen what the product does.
  • With prices you have not localised: pass the store's price and currency, or replace the price lines with the store's formatted strings.

Notes

  • The saving chip compares each plan's monthly price with the most expensive plan and shows from 5% up.
  • Features advance every autoAdvance seconds (default 4) and pause while someone swipes them. Pass a visual per feature for your own screenshots.
  • Wire it to your purchase library (RevenueCat, expo-iap, …); the template does not talk to a store. Check the price and renewal wording against your store's rules.

Props

PaywallProps

PropTypeDefaultDescription
onPurchaserequired(plan: PaywallPlan) => Promise<void> | void—Charge the plan. Return a promise to show a spinner; reject to stay on the paywall.
onClose() => void—
onRestore() => void—
onTerms() => void—
onPrivacy() => void—
titlestring'Kinetik Pro'Product name under the mark. Defaults to "Kinetik Pro".
plansreadonly PaywallPlan[]DEFAULT_PLANS
featuresreadonly PaywallFeature[]DEFAULT_FEATURES
currencystring'$'Currency symbol placed before prices. Defaults to "$".
autoAdvancenumber4Seconds each feature stays before the next slides in. 0 turns it off. Defaults to 4.

Performance and accessibility

Performance

Budget
The mark turns on the UI thread; the feature phones and dots follow the scroll in worklets. The carousel advances on a timer with one scroll per step. Plan cards are plain views.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.29× the system Settings app on the same emulator (indicative only) · keeps drawing at rest · 147 MB app memory. Animating at rest: the mark keeps turning while the paywall is open; the carousel advances every 4 s.

Real-device measurement pending.

Accessibility

Reduced motion
The mark holds still, the carousel does not advance on its own and pages change without scrolling.
Screen readers
The title is a header. Only the current feature is exposed and the dots read "Feature 2 of 3". Each plan reads its monthly price, what is billed and the saving; its button names the plan and shows when it is busy.
Touch target
Close, the links and the plan buttons are at least 44 pt.

Source files

components/kinetik/screens/paywall.tsx is in the Code tab of the preview above.