Skip to main content
Question

Paywall crashes on Android - error while updating options of a view managed by PayWall


yavuzakyazici
Forum|alt.badge.img+5

I am getting this error when I try to test subscription thru paywall. PayWall is never displayed.
It works fine on iOS.

 

7 replies

yavuzakyazici
Forum|alt.badge.img+5

Commenting out options prop got it working.

return (
    <RevenueCatUI.Paywall
      // options={{ displayCloseButton: true }}

However, I need the close button on pay wall. So Do I have to create my own close button and open paywall as modal? Or could this be fixed?


yavuzakyazici
Forum|alt.badge.img+5

I did not get an answer for my question. So, should I open a support ticket?

I understand there is no web option for RevenueCat since the web PayWalls are not ready.
However, I still don’t know what my solution is.

So far, I tried conditional import of RevenueCat and creating PayWall functions depending on if the device os is iOS or Android. None of them worked.

This leaves me only choice to open a git branch for web and uninstall RevenueCat completely for that branch. This is not a desired solution for me since I would have to maintain two branches then. I would like to know if this is my only option before I even think about this. So, I would be grateful if I could get an answer. Thanks..


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 556 replies
  • March 28, 2025

Hi ​@yavuzakyazici apologies for the delay here. Could you share with me the SDK version you are using? And if you are using React Native, are you using the new architecture?


yavuzakyazici
Forum|alt.badge.img+5

Hello… My SDK version is “expo": "^52.0.39"
I checked for 


    "newArchEnabled": true

 

But I did not find it in App.json so I guess it is not enabled.


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 556 replies
  • April 3, 2025

Hi ​@yavuzakyazici, apologies for the delay in response here. We have merged the fix here for this. Please upgrade to our most recent 8.9.2 SDK here and let me know if this is fixed on your end.


yavuzakyazici
Forum|alt.badge.img+5

Hi,

It is not very clear how to install the new package.

The link you posted leads to a source code. Then the ReadMe in the source code says to install react-native-purchases by executing terminal command “npx expo install react-native-purchases”. So I have "react-native-purchases": "^7.28.1", installed. Is the new SDK inside that package?
Or are you suggesting we do make install from source code?

Since it has been a while, I have made my own close button. I had cancelled the “options={{ displayCloseButton: true }}” I don’t really need it. I just wanted to test and see.
 

BTW, I still cannot bundle expo web when RevenueCat code is inside. 
I put Platform.OS checks everywhere there was a PayWall but I always got react-native-purchases not linked error. I gave up and separated the web branch from git, So I can get it working. It only worked that way. It works now but it is not ideal for me to maintain two separate repos. I just wanted to let you know.

Thanks for the help attempt.


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 556 replies
  • April 18, 2025

Hi ​@yavuzakyazici you can upgrade the React Native SDK via npm or yarn and will want to make sure to update your package.json dependencies with the new versions of react-native-purchases and react-native-purchases-ui. In regards to using React Native Web, at this time RevenueCat does not have support for this but it has been passed along as feedback. We only currently have support for React Native.


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