mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
docs(social-sharing): fix example (#1351)
ShareViaEmail parameter for providing email "must be null or an array" because it's type is "string:[]" and the provided syntax is wrong, so i have updated that syntax.
This commit is contained in:
parent
b30883a876
commit
6b9f650a19
@ -22,7 +22,7 @@ import { Cordova, Plugin } from '@ionic-native/core';
|
||||
* });
|
||||
*
|
||||
* // Share via email
|
||||
* this.socialSharing.shareViaEmail('Body', 'Subject', 'recipient@example.org').then(() => {
|
||||
* this.socialSharing.shareViaEmail('Body', 'Subject', ['recipient@example.org']).then(() => {
|
||||
* // Success!
|
||||
* }).catch(() => {
|
||||
* // Error!
|
||||
|
Loading…
Reference in New Issue
Block a user