Invoke the OS native share dialogue to post text or files to external apps.
Invoke native Android & iOS share dialogues for text, links, or files. The OS displays the standard share sheet with all compatible apps installed on the device.
import nativine from 'nativine';
await nativine.share({ title: 'Check this out!', text: 'Join my team', url: 'https://myapp.com/invite/123' });
import nativine from 'nativine';
await nativine.shareFile({ filePath: '/sdcard/Download/receipt.pdf', mimeType: 'application/pdf' });
title — The share dialog title (shown on some devices).text — The body text to share.url — A URL to append to the shared content.filePath — Absolute path to a local file on device storage.mimeType — MIME type of the file being shared.