lundi 24 juin 2019

Implement vibration in ReactJS

I want that the device vibrate in some part of my code (not relevant), I have seen some methods for js but they are not working on react

window.navigator.vibrate(200);
navigator.vibrate([1000,      500,    1000]);
navigator.vibrate(Infinity); // Infinity is a number

It is in a function, this does not matter




Aucun commentaire:

Enregistrer un commentaire