react-native-purchases
react-native-purchases copied to clipboard
fix: Support modal navigation to CustomerCenter
This PR tries to tackle https://github.com/RevenueCat/react-native-purchases/issues/1201#issuecomment-2698366299
This PR adds wrapper for both platforms, and introduces ViewWrapperFrameLayout to avoid a weird composer crash (should be reused in Paywalls)
Current state
| Feature | iOS | Android |
|---|---|---|
| Modal CustomerCenter | ✅ | ❌ |
| Push CustomerCenter | ✅ (need to hide X button) | ❌ (only works if you don't hide the navigation bar) |
| presentCustomerCenter | ✅ | ✅ |
This PR needs https://github.com/RevenueCat/purchases-android/pull/2170/files
@facumenzella is this PR still relevant?
This is related to https://github.com/RevenueCat/react-native-purchases/issues/1201 Tt's relevant, but we haven't found a fix yet for the crash.
The current code doesn't work with React-native-navigation as well.