Skip to main content
Question

React native for web SDK

  • Oct 9, 2023 10:00 AM UTC
  • 5 replies
  • 589 views

Forum|alt.badge.img+1

Does RevenueCat support React native for web ?
I do not see a guide on how to implement it. I tested

Purchases.configure({
apiKey: process.env.STRIPE_API_KEY,
})

and I get a Cannot read properties of undefined (reading 'setupPurchases')

This post has been closed for comments

5 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • Oct 25, 2023 1:37 PM UTC

RevenueCat does not currently support React Native Web via our SDK, but you can use RevenueCat with React Native Web via Stripe: https://www.revenuecat.com/docs/stripe. Rather than using Purchases.configure to configure the SDK and create a user, you’ll instead use our REST API to create users: https://www.revenuecat.com/reference/subscribers


Forum|alt.badge.img+3
  • New Member
  • Oct 6, 2024 6:00 AM UTC

Hi, has this changed? It would be really great to have one payment system for my expo/react-native project on three platforms.


Forum|alt.badge.img+8
  • RevenueCat Staff
  • Oct 7, 2024 7:13 PM UTC

Hi, no updates on this.


Forum|alt.badge.img+3
  • New Member
  • Jan 9, 2025 9:01 PM UTC

Hi, just chiming in that this would be a major draw for us to use RevenueCat more.

 

React Native / Expo are for building universal apps, not just Android and iOS. The fact that your react native package only supports the two platforms is disappointing.

 

Is this planned or should I look elsewhere for our future projects?


Forum|alt.badge.img+8
  • Helper
  • Jan 24, 2025 1:40 AM UTC

+1 for the react-native-purchases SDK to have web support.