> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rampkit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RevenueCat Integration

> Show RevenueCat Paywalls

## Install

```bash theme={null}
npx expo install react-native-purchases react-native-purchases-ui
```

## Setup

```typescript theme={null}
import { RampKit } from "rampkit-expo-dev";
import Purchases from "react-native-purchases";
import RevenueCatUI from "react-native-purchases-ui";

// Initialize RevenueCat
await Purchases.configure({ apiKey: "YOUR_REVENUECAT_KEY" });

// Initialize RampKit
await RampKit.init({
  appId: "YOUR_APP_ID",
  onShowPaywall: async () => {
    await RevenueCatUI.presentPaywallIfNeeded({
      requiredEntitlementIdentifier: "premium",
    });
  },
});
```

Design your paywall in the [RevenueCat dashboard](https://app.revenuecat.com).
