/expo-stack:expo-stack-monetizationfrom expo-stack
Guides RevenueCat monetization strategy for Expo apps: config plugin setup, per-platform keys, entitlement gating, paywall placement, trial-length decisions, hard vs freemium paywall trade-offs, and recovery from involuntary cancellations.
Ships in expo-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Optional in this stack — /expo-stack:new --no-revenuecat skips it entirely. Defer to revenuecat/ai-toolkit (revenuecat-purchase-flow, revenuecat-paywall, revenuecat-testing-setup, revenuecat-troubleshoot) for the SDK's own surface. This skill covers what is specific to this stack, the decisions that actually move revenue, and what App Review will reject you for.
The wiring below is a day of work. These are the parts that decide whether it earns anything. Figures are from RevenueCat's State of Subscription Apps 2026 (~115k apps, ~$16B revenue) — treat them as priors to test against, not as guarantees for your app.
1. Day 0 is where the subscriber is won or lost. 55% of three-day-trial cancellations happen on day zero — minutes after install, not on the day the trial converts. The whole battle is inside the first session, which makes this a product problem owned by expo-stack-onboarding, not a paywall problem. Get the user to something that is visibly theirs fast; defer every permission prompt and optional field until it is needed.
2. Trial length is probably set wrong. Trials of 17+ days convert ~42.5%, versus ~25.5% for three days or less — and nearly half of apps now ship trials of four days or less. The intuition that short trials create urgency loses to the reality that longer trials let the app become a habit. If you are on a three-day trial, the highest-value experiment available is a 14- or 21-day variant. Trial length is configured in the store products, so this test costs no app release.
3. Hard paywall vs freemium is a positioning choice, not a best practice. Hard paywalls convert roughly 10.7% at install versus 2.1% for freemium — about 5×. But after a year, retention between the two is nearly identical: the hard paywall front-loads paying users, freemium arrives at a similar place slower. So pick on time-to-perceived-value: a photo editor where the user knows within a minute is leaving money on the table without testing a hard paywall; a meditation or fitness app where value accrues over weeks probably needs freemium. Note the trap in "just make it free to get users" — free users typically want a different product than paying users, so a large free tier can grow usage without growing the business.
4. On Android, ~30% of cancellations are involuntary — expired cards, bank declines, not decisions. On iOS it is ~14%. This is plumbing, not product: enable grace periods, billing retry, and account-hold recovery, and handle the recovery state in-app instead of treating a lapsed entitlement as a churned user. It is a one-time fix that recovers users who only looked like churn, and for an Android-heavy app it is usually the highest-leverage change available.
If the app has an AI angle, one more: AI apps earn ~41% more revenue per payer and churn ~30% faster. That means the problem is retention, not pricing. Optimising trial length and paywall copy is wasted effort while the app stops feeling useful in week two.
npx expo install react-native-purchases react-native-purchases-ui
Native — Expo Go cannot run this. You need a development build (eas build --profile development, or a local build). The Preview API mode offers mock behaviour but cannot make real purchases. If purchases "do nothing", check first that you are on a dev build and not Expo Go.
After install, rebuild. A hot reload will not pick up the native module, and the error it produces does not say so.
Creating the products themselves is the slow half — App Store Connect and Play Console paperwork, then mirroring it in RevenueCat. The RevenueCat MCP collapses that into one prompt, creating products and entitlements in the stores and in RevenueCat together:
Add yearly and monthly subscriptions at 49.99 and 5.99, monthly with a 14-day trial, both attached to an entitlement called
pro.
Worth setting up before hand-clicking a product matrix twice.
// src/lib/purchases.ts
import Purchases from 'react-native-purchases'
import { Platform } from 'react-native'
export function configurePurchases() {
const apiKey = Platform.select({
ios: process.env.EXPO_PUBLIC_RC_IOS_KEY,
android: process.env.EXPO_PUBLIC_RC_ANDROID_KEY,
})
if (!apiKey) return // web, or a build without monetization
Purchases.configure({ apiKey })
}
Called once from the root layout. The public SDK keys are safe in EXPO_PUBLIC_* — they are designed to ship in the client. The RevenueCat secret key is not; it belongs in Convex env if you ever call the REST API from a Convex action.
Keys differ per platform and per app variant. If you run dev/preview/production variants (see /expo-stack:ship), resolve the key through app.config.ts alongthe bundle identifier so a dev build cannot transact against production.
const info = await Purchases.getCustomerInfo()
const isPro = info.entitlements.active['pro'] !== undefined
Entitlement identifiers, not product identifiers — that is what lets you change pricing, add plans, or run promos without shipping an app update. A locally-cached "user is pro" boolean is the classic bug: it survives a cancelled subscription and breaks restore-on-new-device.
One hook, subscribed to updates so a purchase, restore, expiry or billing-recovery on another device lands without a reload:
// src/hooks/use-entitlement.ts
import Purchases, { type CustomerInfo } from 'react-native-purchases'
export function useEntitlement(entitlementId: string) {
const [isActive, setIsActive] = useState(false)
const [isLoading, setIsLoading] = useState(true)
useEffect(() => {
let cancelled = false
const update = (info: CustomerInfo) => {
if (cancelled) return
setIsActive(info.entitlements.active[entitlementId] !== undefined)
setIsLoading(false)
}
Purchases.getCustomerInfo().then(update).catch(() => !cancelled && setIsLoading(false))
Purchases.addCustomerInfoUpdateListener(update)
return () => {
cancelled = true
Purchases.removeCustomerInfoUpdateListener(update)
}
}, [entitlementId])
return { isActive, isLoading }
}
export const useIsPro = () => useEntitlement('pro')
isLoading matters: gating on isActive alone flashes the paywall to paying users on every cold start. Same discipline as the undefined branch on a Convex useQuery in expo-stack-premium-ui.
In this stack, put the check behind a hook and let RevenueCat be the source of truth for access, while Convex stores anything you need server-side (e.g. "this user was pro when they created this record"). If a Convex function must know the current status, verify it server-side via a RevenueCat webhook into a Convex HTTP action rather than trusting a value the client sent.
The paywall is a product, not a screen. It is the surface where money happens, and the standard failure is polishing the app for weeks and then bolting on whatever paywall was quickest. It deserves the attention a feature gets, and it should change often.
import RevenueCatUI from 'react-native-purchases-ui'
<RevenueCatUI.Paywall
onPurchaseCompleted={() => router.back()}
onRestoreCompleted={() => router.back()}
onDismiss={() => router.back()}
/>
react-native-purchases-ui renders paywalls configured remotely in the RevenueCat dashboard — copy, pricing, plan order and layout change without an app release, and the built-in experimentation runs A/B tests without one either. Prefer that over a hand-built paywall unless the design genuinely cannot be expressed there; a hardcoded paywall means a store review cycle for every pricing experiment, which in practice means the experiment never runs.
Treat it as a living surface: new copy, new trial length, new plan ordering, new price display, tested weekly. Test one variable at a time — a paywall that changed three things and moved 2% has taught you nothing.
Placement, per expo-stack-onboarding: after value has been demonstrated and after sign-up, so the purchase attaches to an account and restores across devices. A hard paywall is the deliberate exception — see decision 3 above — and even then it goes after the value proposition, not on the launch frame.
Verify the paywall renders correctly on a small device. expo-stack-visual-design applies here more than anywhere: three identically-styled CTAs is a contrast failure on the one screen where the eye must land in one place.
Grace period, billing retry and account hold are toggles in Play Console / App Store Connect, not code — turn them on. What is code is not treating the resulting state as churn:
getCustomerInfo(), not a local flag.These are rejection causes, discovered late, each costing a review cycle:
Handle the user-cancelled purchase path explicitly: it is not an error and must not surface as one.
Sandbox accounts on both stores before shipping, and specifically test: purchase, cancel mid-flow, restore on a fresh install, and a subscription that has lapsed. revenuecat-testing-setup covers the mechanics.
Verify the paywall itself on a device with argent — a paywall whose CTA is below the fold on a small screen converts at zero.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub flyingwebie/skills --plugin expo-stack14 skills in this plugin
/expo-stackScaffold, configure, diagnose, polish, and ship production Expo applications with the Expo Stack workflow in Codex./expo-stack-architectureFolder layout, the routes-only rule, platform file extensions, and monorepo/workspace wiring for an Expo Router app in this stack. Use when scaffolding a project, deciding where a new file belongs, adding a shared package, or fixing Metro resolution in a bun/pnpm/yarn workspace./expo-stack-asoApp Store Optimization as part of the build loop — the indexed metadata fields, keyword strategy, screenshots that rank as well as convert, review-prompt timing, and store localization matched to the app's locales. Use when preparing a store listing, choosing a title/subtitle/keywords, planning screenshots, adding a rating prompt, or asked why an app is not being found.Other plugins' skills for the same job