Hi,
After running npx create-expo-module
, running the example app results in a message in the Xcode console
Invariant Violation: Failed to call into JavaScript module method RCTDeviceEventEmitter.emit(). Module has not been registered as callable. Registered callable JavaScript modules (n = 0): .
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
The app loads and renders nothing. After a few reloads the message “Hello World ” might show up. Implementing a more complex module doesn’t render at all. I’ve tried several options and nothing has worked.
Reran prebuild
Ran react-native-clean-project and cleared everything in the ios folder and all caches