Skip to main content

Hi,

I have a separate component responsible for loading the paywall.

Purchases.configure is setup in the useEffect in the index.tsx file as that’s the first component it hits.

Then, my subscribe button calls a function that loads the paywall.

This wasn’t happening prior to updating the the latest expo/expo supported react native that comes built into their latest SDK.

For reference

Package.json:

"react-native": "0.79.3",

"expo": "^53.0.11",

"react-native-purchases": "^8.9.5",

"react-native-purchases-ui": "^8.9.5",

 

Any suggestions? Thank you.

We are seeing the same issue with these versions:

 

expo 52.0.46

react-native 0.76.9

react-native-purchases 8.11.5

react-native-purchases-ui 8.11.5


Same issue. It works on older version but after updates, its no longer working.

  expo": "53.0.12

  react-native": "0.79.4

  react-native-purchases": "^8.11.1"

    "react-native-purchases-ui": "^8.11.2

 

 LOG  Attempting to present paywall...
 ERROR  Error in showPaywall: wError: Exception in HostFunction: Method addObserver must be called on the main thread]
 ERROR  Fallback paywall also failed: lError: Exception in HostFunction: Method addObserver must be called on the main thread]

 


Afternoon,

At this present moment in time, the only solution I’ve found is to convert it to a rendered component using RevenuecatUI.Paywall instead of an async component.

Granted, I’m unfamiliar with the eventListeners at the moment in terms of their callback property functions. However, my server handles subscription updates via their RESTAPI.

I’ve attempted to rollback the react-native-purchases/ui to previous versions with no success.

This needs addressing.


Same problem. I’ve opened a Github issue: https://github.com/RevenueCat/react-native-purchases/issues/1296#issuecomment-2997145756

but no response yet from the team.
 


Hi, this issue has been fixed in React Native 8.11.6. Please upgrade and let me know if you still run into this issue: https://github.com/RevenueCat/react-native-purchases/releases/tag/8.11.6


I have the same problem, but in Flutter and Android 😪


Reply