Skip to main content
Question

Android Crash with V2 Paywalls


Forum|alt.badge.img

Hello, Im having issues with opening Paywall V2 inside Expo app (Android). On iOS it works totally fine but on Android the app crashes (the screen becomes black).
Here is the code for my modal:
```

import { useRouter } from 'expo-router';

import { View } from 'react-native';

import RevenueCatUI from 'react-native-purchases-ui';

 

export default function Paywall() {

const router = useRouter();

 

return (

<View className='flex-1'>

<RevenueCatUI.Paywall

options={{

displayCloseButton: true,

}}

onDismiss={() => {

router.back();

}}

/>

</View>

);

}
```

Deps:
```
"expo": "^53.0.9",

"react-native": "0.79.2",

"react-native-purchases": "8.10.1",

"react-native-purchases-ui": "8.10.1",
```
Important note: It also didn't work on Expo SDK 52 and RN 0.77

2 replies

Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • May 26, 2025

Additional small details:
1. App has Closed testing on Google Play​​​​​​​
2. Both Google or Sentry didnt report any crashes, even though the app doesnt respond.


Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • May 26, 2025

Fixed by using RevenueCatUI.presentPaywall instead of RevenueCatUI.Paywall.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings