ShareResult
How the share sheet ended, and with which app or activity when the user shared.
Usage
Share a message or file
This type is used by share
import { share } from 'kuito';
const result = await share(
{ message: 'Severance', url: 'https://www.tvmaze.com/shows/44933', title: 'A show' },
{ dialogTitle: 'Share a show', subject: 'Watch this' },
);
if (result.action === 'shared') console.log('shared with', result.activityType);Type declaration
export type ShareResult = SpecShareResult;Members 2
| Name | Type | Required | Description |
|---|---|---|---|
action | ShareAction | Yes | — |
activityType | string | No | The activity or app the user shared with: an activity type on iOS, a component on Android. |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.