Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Add option to disable truecaller listener once done #8

@HishamMubarak

Description

@HishamMubarak

TRUECALLER.on(TRUECALLER_EVENT.TrueProfileResponse, profile => { //callback executed })

Once the Truecaller listener is added using the above code, in the componentDidMount, there are no methods available to remove this event listener. There after in the entire app session until exiting, whenever the app state goes to background and returns, this callback function gets called.

I guess there should be some method like TRUECALLER.removeListener(TRUECALLER_EVENT.TrueProfileResponse) to remove this listener, so we can invoke that in componentWillUnmount or whenever the verification with truecaller is done.

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