Template · Pro

Expo RevenueCat template: subscriptions and a paywall, wired

RevenueCat as a ReadyNative module: one setup command copies in the paywall, the entitlement check and Restore, and removes the payment options you did not pick.

What you get

This gives you in-app subscriptions on both stores through RevenueCat: src/lib/payments.ts implements the shim on react-native-purchases, a PaymentsProvider (order 70) keeps the RevenueCat app user id on the signed-in user and listens for customer-info changes, and /paywall ships as a modal with your feature bullets, the current offering's packages and prices, Buy, the store's renewal terms, "Compare all plans", Restore, and Terms/Privacy links from readynative.config.ts urls. If you set up with --with-examples there's an example at /examples/paywall and jest mocks for both native packages. @/lib/payments keeps the same API whichever option you pick - pick RevenueCat when you want StoreKit and Play Billing handled for you, plus remote paywalls you can edit without shipping an update.

Screens added
/paywall/
Tests included
1
npm packages
react-native-purchases ^10.10.1, react-native-purchases-ui ^10.10.1
Runs in Expo Go
No - needs a development build

Which tier includes it

Pro. Payments is a Pro category: the free tier and Starter ship it switched off. Pro is one payment with lifetime updates. See pricing.

What needs a key

KeyWhere it goesRequired
EXPO_PUBLIC_REVENUECAT_IOS_KEYApp (.env)Yes
EXPO_PUBLIC_REVENUECAT_ANDROID_KEYApp (.env)Yes

Set it up

bun run setup --payments revenuecat
  1. RevenueCat: create a project at https://app.revenuecat.com, add an App Store app (bundle id from readynative.config.ts) and a Play Store app (package name).
  2. RevenueCat: copy the public SDK keys (Project settings → API keys) into .env as EXPO_PUBLIC_REVENUECAT_IOS_KEY / EXPO_PUBLIC_REVENUECAT_ANDROID_KEY.
  3. RevenueCat: create Products (App Store Connect / Play Console product ids), an Entitlement (e.g. pro) and an Offering marked as current; /paywall lists the current offering's packages.
  4. react-native-purchases is a native module: make a dev build with npx expo run:ios / npx expo run:android (or eas build --profile development). Expo Go will not load it.

Then bun run doctor lists any key still missing, with a link to where you get it. The full guide: RevenueCat docs.

Pairs with

Read more

Questions

Which ReadyNative tier includes RevenueCat?

Pro. Payments is a Pro category: the free tier and Starter ship it switched off. Pro is one payment with lifetime updates.

Does RevenueCat run in Expo Go?

No: dev build required (no Expo Go). Make a development build: npx expo run:ios or npx expo run:android locally, or eas build --profile development in the cloud.

Which keys does RevenueCat need?

In the app's .env: EXPO_PUBLIC_REVENUECAT_IOS_KEY, EXPO_PUBLIC_REVENUECAT_ANDROID_KEY. bun run doctor lists any that are missing.

Can I switch from RevenueCat to another option later?

Yes. @/lib/payments keeps the same API in every payments option (RevenueCat, Adapty and Stripe Checkout), so screens written against it keep working when you switch.

Does the paywall work before I design one in RevenueCat?

Yes. payments.presentPaywall() shows the paywall designed in the RevenueCat dashboard when there is one, and falls back to the bundled /paywall route when there is not.

Can I test purchases in a simulator?

Purchases only work on a real device signed into a sandbox tester (App Store Connect) or a license tester (Play Console). The setup steps say where to add both.

Get it

Get Pro · Try the free tier on GitHub