Skip to content

Disable vibration not working on ios #51

@larsandremoen

Description

@larsandremoen

Unable to disable the vibration with vibrate=false.

For me it looks like it's becuase this guard is always true due to prevProps.vibrate always being true.

Modifying the guard to the following seems to be working as intended:
if (this.props.vibrate && this.props.isOpen && !prevProps.isOpen) {...}

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