Purchases > RevenueCat

All functions related to RevenueCat can be found in src/libs/revenueCat.ts

1. Initialize RevenueCat SDK at app startup

Initialized by default in App.tsx

App.tsx

2. Identify a user in RevenueCat

Enabled by default in src/redux/authSlice.ts

src/redux/authSlice.ts

3. Fetch all available subscriptions & one-time purchases

Page.tsx

4. Handles product purchases (subscriptions or one-time purchases)

Page.tsx

5. Restores purchases when a user reinstalls the app

Page.tsx

6. Checks the user's active subscription

Page.tsx

7. Checks if a specific plan (entitlement) is purchased

Page.tsx

8. Logs out the user from RevenueCat

Enabled by default in src/redux/authSlice.ts

src/redux/authSlice.ts