react-native-mo-vibrate
v0.1.4
Published
react-native vibrate / haptic feedback
Downloads
5
Readme
react-native-mo-vibrate
Lets you vibrate your phone from react-native
Installation
Install just like your ordinary react-native module.
Usage
Please check the example/ code.
import { Vibrate } from 'react-native-mo-vibrate';
Vibrate.vibrate(Vibrate.Type.TAP);
Advanced
import { Vibrate } from 'react-native-mo-vibrate';
if (Vibrate.android.Module) {
Vibrate.android.Module.vibratePattern({
pattern: [ 500, 100, 500 ],
amplitude; [ 255, 127, 255 ],
repeat: 3,
});
}