revenuecat

Integrates RevenueCat in-app purchases and subscriptions into Expo React Native apps.

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/SaberAloui/agri-hub --skill revenuecat-saberaloui
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: revenuecat
Source: https://github.com/SaberAloui/agri-hub/tree/main/.local/skills/revenuecat
Command: npx skills add https://github.com/SaberAloui/agri-hub --skill revenuecat-saberaloui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires react-native-purchases, @replit/revenuecat-sdk, and includes references (resource) components.

What problem does it solve? Setting up in-app purchases and subscriptions in mobile apps requires coordinating projects, apps, products, entitlements, offerings, and packages across RevenueCat, App Store Connect, and Google Play. This Skill guides the full integration of RevenueCat into Expo/React Native apps on Replit, from initial seeding to ongoing management. ## Core Features & Use Cases - Initial Setup Automation: Provides a complete seed script that creates RevenueCat projects, apps (Test Store, App Store, Play Store), products, entitlements, offerings, and packages, then outputs API keys and IDs to store as environment variables. - Client-Side Subscription Flow: Supplies a ready-to-use lib/revenuecat.tsx module with a SubscriptionProvider and useSubscription hook built on react-native-purchases and TanStack Query for purchases, restores, and entitlement checks. - Ongoing CRUD Management: Documents the @replit/revenuecat-sdk REST API for querying customers, updating products and prices, managing offerings, and handling subscriptions after setup. - Use Case: A user building a habit tracker app on Replit asks to add a monthly premium subscription. The Skill seeds a RevenueCat project with a $9.99/month product, wires up the paywall in the Expo app, and later updates the price by creating replacement products. ## Quick Start Ask the agent to set up RevenueCat subscriptions in your Expo app, and it will run the seed script, configure environment variables, and implement the purchase flow.

Frequently Asked Questions about revenuecat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add in-app purchases to an Expo React Native app?▼

Install react-native-purchases in the Expo workspace package, run a seed script using @replit/revenuecat-sdk to create the project, products, entitlements, and offerings, then use the provided SubscriptionProvider and useSubscription hook to implement the purchase flow.

How do I update a subscription price in RevenueCat?▼

For the Test Store, create new products with the updated price using a new identifier, attach them to the entitlement and package, then delete the old products entirely. For production stores, update prices directly in App Store Connect or Google Play Console.

Does RevenueCat work in Expo Go without a native build?▼

Yes, RevenueCat works in Expo Go without a native build. The SDK automatically runs in Preview API Mode, replacing native calls with JavaScript mocks so the app loads without errors. It also works on the web out of the box.

Should I use RevenueCat or Stripe for app payments?▼

Use RevenueCat for native mobile apps built with the Expo/React Native stack. If the project is not Expo/mobile, use the Stripe integration instead, as RevenueCat is only intended for mobile in-app purchases.

Why does the RNPurchases native module not found error occur?▼

This error occurs when react-native-purchases is installed in the workspace root instead of the Expo app workspace package. Install it specifically inside the target mobile workspace package using pnpm.

Can I offer free trials with the RevenueCat Test Store?▼

No, free trials are not supported in the RevenueCat Test Store due to a platform limitation. Free trials can be configured in App Store Connect and Google Play Console, and the client automatically detects them once enabled in production.