RevenueCat / react-native-purchases

React Native in-app purchases and subscriptions made easy. Support for iOS and Android.
https://www.revenuecat.com
MIT License
770 stars 84 forks source link

Setting `proxyURL` should not require configure #1032

Closed vegaro closed 4 months ago

vegaro commented 4 months ago

Setting a proxy URL doesn't require an instance so we shouldn't be checking if Purchases is configured

dangilbert commented 4 months ago

Thanks for looking at this so quickly! Would it be possible to make this a promise that can be awaited? With the async nature of the bridge we could call this and then configure, but the URL might not have updated.

I've opened a PR that I think should do the job here: https://github.com/RevenueCat/react-native-purchases/pull/1033