react-native app not running in emulator but it is working fine in the real device and also I am using a MacBook pro with an M1 pro chip also the emulator is not detecting the metro server.
this is the log I am getting
2021-12-18 19:57:27.531 10823-10874/com.myapp E/ReactNativeJS: TypeError: Cannot read property 'prefix' of null, js engine: hermes
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at android.app.ContextImpl.unbindService(ContextImpl.java:1874)
2021-12-18 19:57:29.266 10970-10970/? I/BugleRcsEngine: [2] aeec.disconnect: Disconnecting RcsProfileService
2021-12-18 19:57:27.536 10823-10874/com.myapp E/ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication), js engine: hermes
at android.content.ContextWrapper.unbindService(ContextWrapper.java:792)
at aeec.b(PG:43)
2021-12-18 19:57:29.266 10970-10970/? W/RcsClientLib: Unexpected error when trying to unbind com.google.android.ims.rcsservice.profile.IRcsProfile: Service not registered: aeed@56a981e
2021-12-18 19:57:27.553 10823-10874/com.myapp E/ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication), js engine: hermes
at aeec.disconnect(PG:41)
at koc.b(PG:38)