share()
static 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.
message - a message to sharetitle - title of the messageurl - an URL to shareAt least one of URL and message is required.
subject - a subject to share via emailexcludedActivityTypestintColordialogTitlesharedAction()
static sharedAction()
The content was successfully shared.
dismissedAction()
static dismissedAction()
The dialog has been dismissed. @platform ios
© 2015–2018 Facebook Inc.
Licensed under the Creative Commons Attribution 4.0 International Public License.
https://facebook.github.io/react-native/docs/share