d
Amit DhamuSoftware Engineer
 

Sharing with navigator.share

1 minute read 00000 views

You can use the following to hook into the operating system's native share sheet

const share = navigator
  .share({
    title: '<TITLE>',
    text: '<DESCRIPTION>',
    url: '<URL>',
  })
  .then(() => console.log('Shared successfully'))
  .catch(error => console.error(error))