Skip to content

warning new NativeEventEmitter() was called with a non-null argument without the required removeListeners method #24

Description

@maartenvandillen

Hi, I am getting above warning when using this package. React native version 0.66.5

Code used:

useEffect(() => {
  const midnightListener = Midnight.addListener(() => {
    // ...
  })
  
  return () => {
    midnightListener.remove()
  }
}, [])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions