verdnatura-chat/app/utils/vibration.js

12 lines
180 B
JavaScript

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