ShareAction
Whether the user shared from the share sheet or dismissed it.
Verwendung
Handle the outcome of a share sheet.
// 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
export type ShareAction = SpecShareAction;Typ
"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.