From 6b9f650a19e91ba6fc730224e7bcbd4685bd1c47 Mon Sep 17 00:00:00 2001 From: Nikhil Date: Fri, 14 Apr 2017 18:34:11 +0530 Subject: [PATCH] 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. --- src/@ionic-native/plugins/social-sharing/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/social-sharing/index.ts b/src/@ionic-native/plugins/social-sharing/index.ts index 87bb696fd..9fbb2f8de 100644 --- a/src/@ionic-native/plugins/social-sharing/index.ts +++ b/src/@ionic-native/plugins/social-sharing/index.ts @@ -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!