Skip to content
Back to skills

Integrate Revenuecat Rn

ASecurity

Integrate RevenueCat 8.x React Native SDK with Expo config plugin. Use when the user says 'integrate RevenueCat', 'add subscriptions', 'set up IAP', 'react-native-purchases'.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
developmentgobashreactapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned October 4, 2026

npx -y skills add khadinakbarlabs/expo-mobile-app-builder --skill integrate-revenuecat-rn --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Integrate Revenuecat Rn?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Integrate Revenuecat Rn
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khadinakbarlabs-integrate-revenuecat-rn/badge)](https://www.skillsdirectory.com/skills/khadinakbarlabs-integrate-revenuecat-rn)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "integrate-revenuecat-rn"
description: "Integrate RevenueCat 8.x React Native SDK with Expo config plugin. Use when the user says 'integrate RevenueCat', 'add subscriptions', 'set up IAP', 'react-native-purchases'."
---

# Integrate RevenueCat (RN)

RevenueCat is one option for React Native + Expo subscriptions. Check its current pricing, data processing, and store-account requirements before selecting it.

## Credential and external action gate

Creating a RevenueCat project, accessing App Store Connect or Play credentials, importing products, and starting an EAS development build are external actions. Obtain owner approval for the account, app identifiers, products, and build target. Do not place provider credentials in this plugin, source control, prompts, screenshots, or logs.

## Install
```bash
npm exec --no -- expo install react-native-purchases react-native-purchases-ui
```

## app.json
```json
{
  "expo": {
    "plugins": ["react-native-purchases"]
  }
}
```
Requires an EAS development build because Expo Go cannot load this native module. Prepare the build command and run it only after the owner confirms the target account and profile.

## Configure at app launch
```tsx
// app/_layout.tsx
import Purchases, { LOG_LEVEL } from 'react-native-purchases';
import { useEffect } from 'react';

export default function RootLayout() {
  useEffect(() => {
    Purchases.setLogLevel(LOG_LEVEL.DEBUG); // INFO or WARN in production
    Purchases.configure({ apiKey: '<platform-public-sdk-key>' });
  }, []);
  return <Stack />;
}
```

## Check entitlement
```tsx
import Purchases from 'react-native-purchases';

const info = await Purchases.getCustomerInfo();
const isPro = info.entitlements.active['pro'] !== undefined;
```

## Purchase flow
```tsx
const offerings = await Purchases.getOfferings();
const pkg = offerings.current?.annual;
if (pkg) {
  try {
    const { customerInfo } = await Purchases.purchasePackage(pkg);
    if (customerInfo.entitlements.active['pro']) {
      // grant access
    }
  } catch (e) {
    if (!e.userCancelled) showError(e.message);
  }
}
```

## Restore
```tsx
const customerInfo = await Purchases.restorePurchases();
```

## Listen for changes (essential)
```tsx
useEffect(() => {
  const sub = Purchases.addCustomerInfoUpdateListener((info) => {
    setIsPro(info.entitlements.active['pro'] !== undefined);
  });
  return () => sub.remove();
}, []);
```

## RevenueCat dashboard setup
1. Create account at app.revenuecat.com
2. Add the app only after the owner has approved the bundle identifier and secure App Store Connect access plan
3. Create products in App Store Connect FIRST
4. In RevenueCat: Entitlement `pro`, Products linked to ASC, Offering `current` with packages

## Reference
`references/03-monetization.md`

Files in this skill

  • SKILL.md2.7 KB
  • agents/openai.yaml200 B
  • references/03-monetization.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…