Skip to main content

Install

npx expo install react-native-purchases react-native-purchases-ui

Setup

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.