> ## 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

> Show RevenueCat Paywalls from your onboarding

Use RevenueCat Paywalls to show native paywalls designed in RevenueCat's dashboard.

## 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 first
await Purchases.configure({ apiKey: "YOUR_REVENUECAT_KEY" });

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

## Present Paywall

```typescript theme={null}
// Show paywall only if user doesn't have entitlement
await RevenueCatUI.presentPaywallIfNeeded({
  requiredEntitlementIdentifier: "premium",
});

// Or always show paywall
await RevenueCatUI.presentPaywall();
```

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