- Function Component
- Class Component
static share(content: ShareContent, options?: ShareOptions);
Open a dialog to share text content.
In iOS, returns a Promise which will be invoked with an object containing
activityType. If the user dismissed the dialog, the Promise will still be resolved with action being
Share.dismissedAction and all the other keys being undefined. Note that some share options will not appear or work on the iOS simulator.
In Android, returns a Promise which will always be resolved with action being
At least one of
static sharedAction: 'sharedAction';
The content was successfully shared.
static dismissedAction: 'dismissedAction';
The dialog has been dismissed.