Take a look here.
useEffect(() => {
Notifications.addListener(handleNotification);
}, []);
const handleNotification = (notification) => {
Vibration.vibrate();
console.log(notification);
};
Take a look here.
useEffect(() => {
Notifications.addListener(handleNotification);
}, []);
const handleNotification = (notification) => {
Vibration.vibrate();
console.log(notification);
};