-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Expo] : Invariant Violation: new NativeEventEmitter()
requires a non-null argument
#73
Comments
Same error on expo go I can't start my app. |
Any update on this? Facing same issue. I made a seperate expo module for this. It works fine with standalone module but doesn't work with the expo app. |
I guess, I will try to run thus using expo development build . |
I did this. Still same error. It doesn't install the RNZohoSalesIQ pod properly on iOS. I tried making a custom plugin and it worked but doesn't work when imported in the expo app. I think expo custom config can do the thing but it will need a alot of configurations. |
@ubaidkolad if you dont mind, can you share your custom plugin that worked ?, may that could help even further using expo. prebuild |
I actually have it on my private repo. But I did not do any extra configurations. I just created an expo module and installed Zoho Plugin and did some changes as per the docs. and it worked as a standalone app using |
@cmcWebCode40 - someone here 46 achieved it using custom config. |
I'm starting to write a new custom config using this doc here - https://docs.expo.dev/versions/latest/sdk/build-properties/ I think this should do it. I'll share the update if it works or not. |
I attempted using a React Native CLI project where I had to make modifications to the native code for ios However, our current project relies on Expo. To address this challenge, I've come to realize that creating a custom Expo plugin is the most effective approach. This custom plugin will automatically generate the necessary native code during the build process. how can i get help or guidance to write this custom plugin ? |
I would add that I only get this error under expo 49, so I downgraded the version to 48 while a real correction is made. This is since they modified the AddListener and RemoveListener methods, I have the impression that some libraries have not yet taken this modification into account. |
@Eliost , does this work for you on expo 48 using a development ? |
@cmcWebCode40 - I was able to integrate the plugin easily using expo-build-properties. Add this code to your
|
@cmcWebCode40 Yes, on expo GO with expo 48, it works well on my side and as soon as I switch to 49, it no longer works. here is my json package:
From what I noticed, I got the error first on ScreenOrientation |
Thanks @ubaidkolad , for this i will try it , i hope it works for expo 49 , i'm currently AFK |
thanks @ubaidkolad , this fixed the issue |
new NativeEventEmitter()
requires a non-null argument., js engine: hermes new NativeEventEmitter()
requires a non-null argument
@cmcWebCode40 - great! By the way were you able to enable push notifications in the expo app without |
Personally, I use push notifications on my app, and I don't need prebuild. |
yes, but you can only test your PN using a real device |
I just added APN on zoho dashboard. But I don't get push notifications of the new chats. Is there any extra config required? @cmcWebCode40 |
I'm currently having this error trying to use this package in my react native expo-dev-client app,
my Code :
here is a screenshot of this error:
From my findings, I suspect it could be an issue related to the newer version of the RN > 0.65.0 as mentioned in this issue
#2297
I would appreciate any help to fix this issue as it is a blocker for me at the moment.
package versions
"expo": "~48.0.11",
"react-native": "0.71.8",
"react-native-zohosalesiq-mobilisten": "^6.1.0",
The text was updated successfully, but these errors were encountered: