Use navigator.vibrate()
to generate
device vibrations.
ms
- time in milliseconds for how long to vibrate. Can be a single number, or an array of numbers. If array of numbers is specified, every second value is used a vibration lenght and values in between are considered pauses between the vibrations.
import {Vibrate} from 'libreact/lib/Vibrate';
<Vibrate ms={200} />
<Vibrate ms={[100, 100, 100, 100, 100]} />