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:
Nikhil 2017-04-14 18:34:11 +05:30 committed by Ibby Hadeed
parent b30883a876
commit 6b9f650a19

View File

@ -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!