Rocket.Chat.ReactNative/app/utils/vibration.js

12 lines
180 B
JavaScript
Raw Normal View History

import { Vibration } from 'react-native';
import { isAndroid } from './deviceInfo';
const vibrate = () => {
if (isAndroid) {
Vibration.vibrate(30);
}
};
export { vibrate };