Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invariant Violation: Native module cannot be null

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

like image 895
Roy Chan Avatar asked Dec 02 '25 04:12

Roy Chan


1 Answers

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

like image 113
Roy Chan Avatar answered Dec 05 '25 10:12

Roy Chan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!