RN 0.65.0 require some new listener methods on the Native Module when call the NativeEventEmitter
This warning is shown because of the commit 114be1d, which checks if the Native Module has the methods: addListener and removeListeners. These checks are necessary because of this commit f5502fb, which tries to use the Native Module to notify subscriptions on Android. So I think this issue is only related to Android and the 0.65.0 release.
Doing some tests in another libraries with the old architecture I was able to fix it adding those methods in the Native Module in Java:
@ReactMethod
public void addListener(String eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}
@ReactMethod
public void removeListeners(Integer count) {
// Keep: Required for RN built in Event Emitter Calls.
}
RN 0.65.0 require some new listener methods on the Native Module when call the NativeEventEmitter
This warning is shown because of the commit 114be1d, which checks if the Native Module has the methods: addListener and removeListeners. These checks are necessary because of this commit f5502fb, which tries to use the Native Module to notify subscriptions on Android. So I think this issue is only related to Android and the 0.65.0 release.
Doing some tests in another libraries with the old architecture I was able to fix it adding those methods in the Native Module in Java:
https://issueexplorer.com/issue/software-mansion/react-native-reanimated/2297