razorpay / react-native-razorpay

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

Fixed: Open method not working on iOS #290

Closed tushar04 closed 3 years ago

tushar04 commented 4 years ago

By looking at the warning "Attempt to present <UINavigationController: 0x7fd50b91b600> on <UIViewController: 0x7fd50ac01fc0> which is already presenting <RCTModalHostViewController: 0x7fd50ae2fbf0>" I have added a code that will allow application to Present razorpay vc from root view controller.

The same issue #164 has been raised already and the solution to add an arbitrary delay before calling the 'open' method did not work for me.

philly25 commented 3 years ago

@Nautiyalsachin Please, have a look. This actually fixes the issue.