-
Notifications
You must be signed in to change notification settings - Fork 104
Description
- I have updated Purchases SDK to the latest version
- I have read the Contribution Guidelines
- I have searched the Community
- I have read docs.revenuecat.com
- I have searched for existing Github issues
Describe the bug
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
- Environment
- Platform: React Native - Android
- SDK version: 8.9.1
- OS version: 14
- Xcode/Android Studio version:
- React Native version: 0.74.5
- SDK installation (CocoaPods + version or manual): We use Expo 51
- How widespread is the issue. Percentage of devices affected. All
- Debug logs that reproduce the issue
- Steps to reproduce, with a description of expected vs. actual behavior
We have a screen that has button that the user can touch in order to subscribe to our app. When they touch this button we navigate to a screen that displays the paywall component as follows:
<View style={styles.container}>
<RevenueCatUI.Paywall
onPurchaseCompleted={onPurchaseCompleted}
onPurchaseStarted={onPurchaseStarted}
onDismiss={onDismiss}
options={{ offering: selectedOffering }}
/>
</View>
When the user touches the close button on the RC Paywall, it invokes the onDismiss
handler which then calls navigation.goBack()
to take the user back to the screen they came from. However, the close button happens to be positioned just above another button in our app and this button then gets invoked. So it looks like the touch event on the RC Paywall is not being fully consumed by the RevenueCatUI.Paywall
component.
4. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)Additional context
Add any other context about the problem here.