question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EventEmitter.removeListener('change', ...): Method has been deprecated. Warning

See original GitHub issue

Warning

EventEmitter.removeListener(‘change’, …): Method has been deprecated. Please instead use remove() on the subscription returned by EventEmitter.addListener

Code sample

import { Menu } from ‘react-native-paper’; <Menu visible={menu} onDismiss={() => setmenu(false)} anchor={<Ionicons onPress={() => setmenu(true)} name={“settings-sharp”} size={24} color={“#222”} />}> <Menu.Item onPress={() => { }} title=“Download” /> <Menu.Item onPress={() => { }} title=“Report” /> <Menu.Item onPress={() => { }} title=“Cancel” /> </Menu>

Screenshots (if applicable)

image

Your Environment

software version
ios or android android
react-native 0.66.2
react-native-paper ^4.10.1
node v14.18.1
npm or yarn npm
expo sdk no

GITHUB REPO:- https://github.com/pushpender-singh-ap/sampleRepo

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:29 (20 by maintainers)

github_iconTop GitHub Comments

6reactions
lukewalczakcommented, Feb 11, 2022

Problem should be solved in version 4.12.0-alpha.0

2reactions
lukewalczakcommented, Dec 21, 2021

@AndrewIsBest69 @jwisbeck @root-io please try to install the library from that PR and please let me know if it fixes your issue ✌🏽

Read more comments on GitHub >

github_iconTop Results From Across the Web

EventEmitter.removeListener('change', ...): Method ... - GitHub
Current behavior WARN EventEmitter.removeListener('change', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by ...
Read more >
React Native Warning: Receiving warning from the console
ReactNativeJS ▶︎ 'EventEmitter.removeListener(\'change\', ...): Method has been deprecated. Please instead use `remove()` on the subscription ...
Read more >
React Native - EventEmitter removeListener Method has been ...
EventEmitter removeListener Method has been deprecated. Receiving warning on the console.
Read more >
Events | Node.js v19.3.0 Documentation
The eventEmitter.on() method is used to register listeners, ... No checks are made to see if the listener has already been added. Multiple...
Read more >
How to use removeListener function in EventEmitter - Tabnine
Remove event listener * @param {String} event - Event name * @param {function} listener - Event listener * @returns {Transport} */ off() {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found