Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Unmounting nfc listeners? #8

@smitch88

Description

@smitch88

I initialize some of the listeners usingaddListener in componentDidMount of a particular screen container. This particular app does a loop to process multiple tags. However, I don't want a user to be able to read NFC for the app at any random screen in the process. Is there already a way to remove the binding that was added, perhaps calling something on componentWillUnmount?

Would you suggest an alternative is just starting the listener once on app load and checking for the particular screen is the that is in view?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions