🖼
Share Media/Files
- Type - text, image, text and image or file
- Image Url
- Text or Url
- File Url
First of all, specify a type if you want to share just a URL, select Type (text), and provide a URL in the Text or Url field.
Same for Text/Url + Image. Selecting a Type (both) and filling a Text or Url and Image Url fields.
For files, you need to select Type (file), and provide a URL in the File url field
1
const imageUrl = "https://awik.io/wp-content/uploads/2018/06/unsplash.jpg";
2
window.natively.shareImage(imageUrl);
1
const text = "Text for sharing";
2
window.natively.shareText(text);
1
const text = "Text for sharing";
2
const imageUrl = "https://awik.io/wp-content/uploads/2018/06/unsplash.jpg";
3
window.natively.shareTextAndImage(text, imageUrl);
1
const fileUrl = "http://www.africau.edu/images/default/sample.pdf";
2
window.natively.shareFile(fileUrl);
Last modified 1yr ago