-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
NativeEventEmitter warnings on ReactNative 0.65 #1496
Comments
To fix, add this to @ReactMethod
public void addListener(String eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}
@ReactMethod
public void removeListeners(double count) {
// Keep: Required for RN built in Event Emitter Calls.
} |
same problem =/ |
Same here |
same in 7.5.0 |
This is passing CI and ready to merge: #1544 |
En que lugar se tiene que agregar esas lineas de codigo estimado? |
Im getting this error on iOS with RN 0.66.3 Is there any way to solve it? Thanks |
can confirm this is fixed in 7.5.1 |
Got the same warnings with react-native@0.66.4 and react-native-iap@8.0.0-rc.4
|
Can confirm this. I'm on rn@66.4 and riap@8.0.1 |
I think this is because the addListener and removeListener functions were removed from v7 to v8. See this commit that fixed v7: https://github.com/dooboolab/react-native-iap/pull/1544/files v8 (master) does not have this code anymore: So somehow they got lost in translation upon rewriting to kotlin. Should be pretty easy to re-add though! I'll reopen this |
Any update on this? |
I don't speak kotlin but PR is welcome! |
As suggested by @victoriaSh adding below code in node_modules/react-native-iap/android/src/play/java/com/dooboolab/RNIap/RNIapModule.kt file fix the warning. ` @ReactMethod
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
I believe this is fixed. |
Version of react-native-iap
7.4.1
Version of react-native
0.65.1
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
No warnings
Actual behavior
Multiple Logbox warnings:
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
yarn android
to start app on android deviceThe text was updated successfully, but these errors were encountered: