Skip to main content
Question

Error: Exception in HostFunction: Method addObserver must be called on the main thread


Forum|alt.badge.img

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.

4 replies

  • New Member
  • 1 reply
  • June 23, 2025

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


  • New Member
  • 1 reply
  • June 23, 2025

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: [Error: Exception in HostFunction: Method addObserver must be called on the main thread]
 ERROR  Fallback paywall also failed: [Error: Exception in HostFunction: Method addObserver must be called on the main thread]

 


Forum|alt.badge.img
  • Author
  • New Member
  • 4 replies
  • June 23, 2025

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.
 


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