EventEmitter.removeListener('change', ...): Method has been deprecated. Warning
See original GitHub issueWarning
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)
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:
- Created 2 years ago
- Comments:29 (20 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Problem should be solved in version
4.12.0-alpha.0
@AndrewIsBest69 @jwisbeck @root-io please try to install the library from that PR and please let me know if it fixes your issue ✌🏽