Open Akulvarshney opened 1 year ago
Hey, I encountered the same error. Have you discovered any solutions for it?
I was facing this issue after I have fixed
Follow these step :
yarn add react-native-razorpay
npx expo prebuild
npx expo run:[ios|android] --device <-- mandatory
@skbhati199 Ran the command -
npx expo prebuild
npx expo run:android --device
Build is successful but it is throwing this error
CommandError: Couldn't open Android app with activity "com.anonymous.cc_ui_expo://expo-development-client/?url=http%3A%2F%2F192.168.1.3%3A8081" on device "Resizable_Experimental_API_34".
The app might not be installed, try installing it with: npx expo run:android -d Resizable_Experimental_API_34
Activity class {com.anonymous.cc_ui_expo://expo-development-client/?url=http%3A%2F%2F192.168.1.3%3A8081} does not exist.
Tried starting the app again using
npx expo start
The app is opening but it is again throwing the same error.
[TypeError: Cannot read property 'open' of null]
@pranav750 The issue is because after running
npx expo run:android --device
command, when the build failed and you ran the metro server it was in Expo Go mode.
Try running the following commands in order
npx expo start
s
to switch to development builda
to run on android. Dear All,
Could anyone able to figure out the issue?
Kindly do the needful
Regards
I had installed the react-native-razorpay package using
$ npm i react-native-razorpay --save
I have imported the RazorpayCheckout on the top:
import RazorpayCheckout from "react-native-razorpay";
then I have created a function named paymentRazor, which has been called to an onPress functionality of a button.
` const paymentRazor = () => {
};`
Once I click on that button, the following error occurs:
LOG [TypeError: Cannot read property 'open' of null]