Skip to content

Commit

Permalink
fix(social-sharing): shareWithOptions method signature (#598)
Browse files Browse the repository at this point in the history
Fix shareWithOptions method signature, replacing 'options.file' property with 'options.files' to match social sharing plugin [method interface](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/blob/master/src/android/nl/xservices/plugins/SocialSharing.java#L209)
  • Loading branch information
hoisel authored and ihadeed committed Sep 27, 2016
1 parent 8d21f5f commit 2ed84b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/socialsharing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class SocialSharing {
@Cordova({
platforms: ['iOS', 'Android']
})
static shareWithOptions(options: { message?: string, subject?: string, file?: string|string[], url?: string, chooserTitle?: string }): Promise<any> { return; }
static shareWithOptions(options: { message?: string, subject?: string, files?: string|string[], url?: string, chooserTitle?: string }): Promise<any> { return; }

/**
* Checks if you can share via a specific app.
Expand Down

0 comments on commit 2ed84b1

Please sign in to comment.