Skip to content

Fix missing clearTimeout in Vibration.js #15464

@varungupta85

Description

@varungupta85

I am sorry that I have to remove the issue template. I wanted to first clarify with the react-native team if they consider below as a bug in which case I will be willing to submit a PR.

I realized that in the Vibration.js file (link below), there are a couple of calls to setTimeout without corresponding calls to clearTimeout to clean the handlers.

setTimeout(() => vibrateScheduler(++_id, pattern, repeat, 1), pattern[0]);

I am not sure if this is a bug or not. I found it while I was going through all the calls made to setTimeout in my project to make sure that the handlers are cleared.

If it is a bug, I would be happy to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions