Skip to content

removeListener deprecated #2166

Description

@jer-sen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions