Invariant Violation: Native module cannot be null

Viewed 9371

Hi I have an error when I am trying to install and import expo-notifications. I followed the documentation here: https://docs.expo.io/versions/v38.0.0/sdk/notifications/ and ran expo install expo-notifications but I am receiving this error when I try to import it. I know the error comes from this import as when i comment it out, my app loads normally. I am using the expo managed workflow. Appreciate if anyone can help me with this issue! Edit: tested it on android simulator and it works there so this seems to be an IOS issue.

enter image description here

enter image description here

2 Answers

Managed to get it working by upgrading from expo sdk 37 to expo sdk 38 by running expo upgrade

Related