mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 12:34:17 +00:00
e11d496e9d
Summary: Follow up to 9ec95673909beac7798f589e0e9821b4225f8fa9 Closes https://github.com/facebook/react-native/pull/16759 Differential Revision: D6285219 Pulled By: hramos fbshipit-source-id: 7012d257a5a6cff06cb2d94203a9379e4b7e3c4e
1.3 KiB
1.3 KiB
id | title | layout | category | permalink | next | previous |
---|---|---|---|---|---|---|
share | Share | docs | APIs | docs/share.html | statusbarios | settings |
Methods
Reference
Methods
share()
Share.share(content, options)
Open a dialog to share text content.
In iOS, Returns a Promise which will be invoked an object containing action
, 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.
In Android, Returns a Promise which always be resolved with action being Share.sharedAction
.
Content
message
- a message to sharetitle
- title of the message
iOS
url
- an URL to share
At least one of URL and message is required.
Options
iOS
subject
- a subject to share via emailexcludedActivityTypes
tintColor
Android
dialogTitle
sharedAction()
Share.sharedAction()
The content was successfully shared.
dismissedAction()
Share.dismissedAction()
The dialog has been dismissed.
Platform |
---|
iOS |