In react-native@0.65.0 they deprecated the old api in favour of a more terse name, so removeListener() becomes remove().
This line
|
changeEmitter.removeListener(handler); |
raise the
console.error message
EventEmitter.removeListener('function(e){a(e)}', ...): Method has been deprecated. Please instead use remove()
on the subscription returned byEventEmitter.addListener
.
In
react-native@0.65.0they deprecated the old api in favour of a more terse name, soremoveListener()becomesremove().This line
react-native-web/packages/react-native-web/src/exports/AppState/index.js
Line 81 in 081a128
raise the
console.errormessageEventEmitter.removeListener('function(e){a(e)}', ...): Method has been deprecated. Please instead useremove()on the subscription returned byEventEmitter.addListener.