EvanBacon / expo-quick-actions

Add home screen quick actions / shortcuts to your React Native app
MIT License
279 stars 6 forks source link

TypeError: Cannot read property 'initial' of undefined, js engine: hermes #15

Open eranda-99x opened 5 months ago

eranda-99x commented 5 months ago

TypeError: Cannot read property 'initial' of undefined, js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:

Getting this error when trying to run the application when trying to run from Expo GO app. any reason ?

M-Hamza-Malik commented 4 months ago

In one of the past issues closed on Feb 8th, he said that the library does not support Expo Go app and likely never will be. He asked us to use it with dev clients

xavierbriole commented 3 months ago

Hello!

I'm using an iOS development build but I still have this error 😅 Removed .expo folder in the case it was a build cache but it does not change anything

UPDATE: After upgrading to expo SDK 51, it works perfectly. I probably used the wrong version with SDK 50 before

leonardorib commented 1 month ago

I'm using expo in the bare workflow and getting this on Android.

UPDATE: It looks like depending on how early you call QuickActions.setItems you can get this issue. After moving this call from App.tsx to my root navigator component, the error went away. I don't know if this is expected though.

gkadillak-lyra commented 1 month ago

I fixed this by building my app via EAS: eas build <other params go here>