Documentation

Provider setup

Wrap your app once so every screen can read premium state, restore purchases, and open the paywall.

1

Start with anonymous customers

App.tsx

1import { PaywallReadyProvider } from "./src/paywall-ready";2 3export default function App() {4  return (5    <PaywallReadyProvider6      iosApiKey={process.env.EXPO_PUBLIC_REVENUECAT_IOS_API_KEY}7      androidApiKey={process.env.EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY}8      entitlementId="pro"9    >10      <RootNavigator />11    </PaywallReadyProvider>12  );13}

Tip

Anonymous customers are the fastest launch path. Add auth only when your app needs accounts.
2

Add auth later if needed

App.tsx

1<PaywallReadyProvider2  iosApiKey={iosKey}3  androidApiKey={androidKey}4  entitlementId="pro"5  authAdapter={firebaseAuthAdapter}6>7  <RootNavigator />8</PaywallReadyProvider>