Skip to content

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

@pushpender-singh-ap

Description

@pushpender-singh-ap

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" />

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions