razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
125 stars 107 forks source link

Razorpay not working in React Native Expo SDK 51 #483

Open sidhardh-joe opened 5 days ago

sidhardh-joe commented 5 days ago
          Anyone who is here with the same issue [refer to this video](https://www.youtube.com/watch?v=tTzNDrLvwTs&t=343s).

If you are using expo install the razorpay package then use npx expo install expo-dev-client ,if you havent installed dev client install it eas build --profile development --platform android to make a dev build and install it and follow razorpay documentation for expo follow these steps and you will have it working.

Note: You dont need to run prebuild as expo links them automatically. Install the package and then run development build. As of November 2024 latest expo sdk is 52 and it comes with new architecture and as of now razorpay doesn't not support the new architecture. Make sure to go with expo sdk 51 and React Native 0.74 for compatibility. Good Luck

Originally posted by @sidhardh-joe in https://github.com/razorpay/react-native-razorpay/issues/468#issuecomment-2493679278