Module Vibration-BsReactNative

let vibrate: pattern:array(int) => repeat:bool => unit;

The Vibration API is exposed at Vibration.vibrate(). The vibration is asynchronous so this method will return immediately.

You can read more on Vibration API usage in official docs: https://facebook.github.io/react-native/docs/vibration

Methods

vibrate

Trigger vibration with specific pattern by providing array of numbers Default to 400ms.

let vibrate: (~pattern: array(int), ~repeat: bool) => unit;
cancel

Cancel vibration

let cancel: unit => unit;
let cancel: unit => unit;