Overview
Overview of in-app purchases
We are using RevenueCat to handle in-app purchases.
- Relevant Links: RevenueCat Docs
First, you need an Apple Developer & Google Play Developer Account to setup in-app purchases.
Setup
First, go to RevenueCat and create a account.
After you create your account, click on the Create Project
button.
After creating your project, you need to define your project name.
Then, we are continuing with the tabs for platform-specific setup.
After completing two platform-specific setup, open your app/_layout.tsx
file.
- Add the
RevenueCatProvider
component.
Find the useEffect
hook in the App
component.
Wrap the RootLayout
component with the RevenueCatProvider
component.
Now you can use the useRevenueCat
hook to get the RevenueCat instance.
You need to configure your subscriptions on Google Play Console and App Store Connect.
I could have added this step too, but this is too specific for your project.
- I am giving you the links to the docs for Google Play Console and App Store Connect.
- Google Play Console
- App Store Connect
Then we are ready to some sellings 🎉
Was this page helpful?