Alperengozum / expo-alarm

Use Android AlarmClock in React Native / Expo app
https://www.npmjs.com/package/expo-alarm
MIT License
2 stars 0 forks source link

Error: Cannot find native module 'ExpoAlarm' #2

Closed lennertderyck closed 3 weeks ago

lennertderyck commented 2 months ago

After installing the package I get the following error in the terminal:

ERROR  Error: Cannot find native module 'ExpoAlarm', js engine: hermes
ERROR  Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes

Is there additional setup required to get it working?

Alperengozum commented 2 months ago

Hi @lennertderyck, I investigated the issue but couldn't find the reason. I tried to use New Expo's new Creating a Native Module Tutorial, but unfortunately it gives the same error just after creating a new module.

Alperengozum commented 3 weeks ago

I fixed a related issue with merging codes to the new native module structure: https://github.com/Alperengozum/expo-alarm/pull/3. Please use version 0.2.0 and give some comments if this issue is fixed or continuing. I wish you healthy days! 🪄