react-native-payments
react-native-payments copied to clipboard
require.js:117 Require cycle: node_modules/react-native-payments/lib/js/PaymentRequest.js -> node_modules/react-native-payments/lib/js/PaymentRequestUpdateEvent.js -> node_modules/react-native-payments/lib/js/PaymentRequest.js Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
After modifying the podspecs file in react-native payments , reinstalling cocoa pods and relinking I got this error on calling any methods of react-native payment .
go to ‘node_modules/react-native-payments’ and Open the ReactNativePayments.podspec file. At line 3 replace to package = JSON.parse(File.read(File.join(dir, "package.json")))
; line 6 replace to giturl = package["repository"]["url"]
. Line s.homepage = giturl
replace to s.homepage = "giturl"
and add s.dependency "React"
to the end of file before end
. Let me know, if it help you.
not worked
Hey @Sandeep200995, we have fixed the podspec and will be releasing v0.8 which supports autolinking in a couple of days' time. This should resolve your issue. Check back soon!
I still have the same problem on 30/01/2020
facing the same issue!!! October 21, 2022!!!