Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-buzz

NitishGarg7657MIT0.1.8TypeScript support: included

react native package to vibrate mobile

react-native, react-native-Vibration, react-native-Buzz, react, buzz, buzzer, Vibrations

readme

react-native-buzz

A React Native module to vibrate device for both IOS and Android.

Installation

npm install react-native-buzz

Android

Add below permission in AndroidMenifest.xml

<uses-permission android:name="android.permission.VIBRATE" />

IOS

run pod install

Usage

import Buzz from 'react-native-buzz';

const vibrate = () =>{
    //To vibrate the device use below
    Buzz.vibrate()
    //To vibrate device at dezired Intensity use below
    Buzz.vibrateAtIntensity(0.5)
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT