Describe the bug
The shouldShowCloseButton prop on RevenueCatUI.CustomerCenterView is only wired up on iOS. On Android the prop is silently ignored, so the close button always shows regardless of the value passed.
-
Environment
- Platform: Android
- SDK version: react-native-purchases-ui 10.7.0
- OS version: (varies, reproducible on multiple Android versions)
- Xcode/Android Studio version:
- React Native version: "0.86.2"
- SDK installation (CocoaPods + version or manual):yarn install
- How widespread is the issue: 100% of Android devices
-
Debug logs that reproduce the issue
N/A — this is a UI/prop wiring issue, no debug logs are produced.
- Steps to reproduce, with a description of expected vs. actual behavior
Steps:
- Render
<RevenueCatUI.CustomerCenterView shouldShowCloseButton={false} />
- Run on Android
- Observe the close button is still visible
Expected: The close button should be hidden when shouldShowCloseButton={false}, matching iOS behavior.
Actual: The close button remains visible on Android.
- Other information
On iOS the property is exported in ios/CustomerCenterViewManager.m:
RCT_EXPORT_VIEW_PROPERTY(shouldShowCloseButton, BOOL)
However, the Android CustomerCenterViewManager.kt does not declare a corresponding @ReactProp. Compare with BasePaywallViewManager.kt, which does handle displayCloseButton for the Paywall view via OPTION_DISPLAY_CLOSE_BUTTON.
Suggested fix: Add a @ReactProp(name = "shouldShowCloseButton") to CustomerCenterViewManager.kt that forwards the value to the underlying CustomerCenterView (similar to how BasePaywallViewManager.kt handles displayCloseButton for the paywall).
Additional context
N/A
Describe the bug
The
shouldShowCloseButtonprop onRevenueCatUI.CustomerCenterViewis only wired up on iOS. On Android the prop is silently ignored, so the close button always shows regardless of the value passed.Environment
Debug logs that reproduce the issue
N/A — this is a UI/prop wiring issue, no debug logs are produced.
Steps:
<RevenueCatUI.CustomerCenterView shouldShowCloseButton={false} />Expected: The close button should be hidden when
shouldShowCloseButton={false}, matching iOS behavior.Actual: The close button remains visible on Android.
On iOS the property is exported in
ios/CustomerCenterViewManager.m: