Verwendung

Handle the outcome of a share sheet.

tsx
// Handle the outcome of a share sheet.
import { share, type ShareAction } from 'kuito';

const outcomes: Record<ShareAction, string> = { shared: 'Thanks for sharing', dismissed: '' };

const { action } = await share({ message: 'Listen to this', url: 'https://example.com/a/42' });

console.log(outcomes[action]);

Typdeklaration

ts
export type ShareAction = SpecShareAction;

Typ

ts
"shared" | "dismissed"
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.