You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code was throwing an error on iOS due to initializing NativeEventEmitter without a native module. This code exists in ActivityIdentification.js, Geofence.js as well as FusedLocation.js. Example below.
const HMSActivityIdentificationEmitter = new NativeEventEmitter();
This error can be safely ignored because this package isn't expected to run on iOS (and provides no iOS code). But we still need a way to safely ignore it.
I chose to change the code inside index.js such that the code would not be imported or run on iOS. There's probably a better way to do it. Here is the diff that solved my problem:
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@hmscore/[email protected]
for the project I'm working on.The code was throwing an error on iOS due to initializing NativeEventEmitter without a native module. This code exists in
ActivityIdentification.js
,Geofence.js
as well asFusedLocation.js
. Example below.This error can be safely ignored because this package isn't expected to run on iOS (and provides no iOS code). But we still need a way to safely ignore it.
I chose to change the code inside
index.js
such that the code would not be imported or run on iOS. There's probably a better way to do it. Here is the diff that solved my problem:Hope the team can fix this soon! Thanks.
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: