react-native-payments icon indicating copy to clipboard operation
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.

Open Sandeep200995 opened this issue 4 years ago • 6 comments

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 .

Sandeep200995 avatar Apr 10 '20 12:04 Sandeep200995

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.

JollyGolf avatar Apr 10 '20 14:04 JollyGolf

Screenshot 2020-04-13 at 9 58 05 PM

Sandeep200995 avatar Apr 13 '20 16:04 Sandeep200995

not worked

Sandeep200995 avatar Apr 13 '20 16:04 Sandeep200995

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!

nabilfreeman avatar Nov 16 '20 19:11 nabilfreeman

I still have the same problem on 30/01/2020

Chhinvanchhai avatar Feb 01 '22 07:02 Chhinvanchhai

facing the same issue!!! October 21, 2022!!!

hassanAwanAlvi avatar Oct 21 '22 20:10 hassanAwanAlvi