the navigator.share function allows you to fire the share action. Like this:
navigator.share({
title: 'Title',
text: 'Text',
url: 'https://www.example.com' // required
})
you can also do:
.then(() => {
console.log('Share was Successful!');
}).catch((error) => {
console.log('Error Sharing:', error);
});