@capacitor/share
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.2.1](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/share@0.2.0...@capacitor/share@0.2.1) (2020-12-20) | ||
### Bug Fixes | ||
* support deprecated types from Capacitor 2 ([#139](https://github.com/ionic-team/capacitor-plugins/issues/139)) ([2d7127a](https://github.com/ionic-team/capacitor-plugins/commit/2d7127a488e26f0287951921a6db47c49d817336)) | ||
# [0.2.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/share@0.1.1...@capacitor/share@0.2.0) (2020-12-02) | ||
@@ -8,0 +19,0 @@ |
@@ -115,3 +115,4 @@ { | ||
], | ||
"enums": [] | ||
"enums": [], | ||
"typeAliases": [] | ||
} |
import type { SharePlugin } from './definitions'; | ||
declare const Share: SharePlugin; | ||
export * from './definitions'; | ||
export { Share }; |
@@ -5,3 +5,4 @@ import { registerPlugin } from '@capacitor/core'; | ||
}); | ||
export * from './definitions'; | ||
export { Share }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@capacitor/share", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "The Share API provides methods for sharing content in any sharing-enabled apps the user may have installed.", | ||
@@ -46,6 +46,6 @@ "main": "dist/esm/index.js", | ||
"devDependencies": { | ||
"@capacitor/android": "^3.0.0-alpha.7", | ||
"@capacitor/core": "^3.0.0-alpha.7", | ||
"@capacitor/docgen": "^0.0.10", | ||
"@capacitor/ios": "^3.0.0-alpha.7", | ||
"@capacitor/android": "^3.0.0-alpha.10", | ||
"@capacitor/core": "^3.0.0-alpha.9", | ||
"@capacitor/docgen": "0.0.14", | ||
"@capacitor/ios": "^3.0.0-alpha.9", | ||
"@ionic/eslint-config": "^0.3.0", | ||
@@ -63,3 +63,3 @@ "@ionic/prettier-config": "~1.0.1", | ||
"peerDependencies": { | ||
"@capacitor/core": "^3.0.0-alpha.6" | ||
"@capacitor/core": "^3.0.0-alpha.9" | ||
}, | ||
@@ -82,3 +82,3 @@ "prettier": "@ionic/prettier-config", | ||
}, | ||
"gitHead": "78c1981920988ec84c17bbc61b1da1df9743571c" | ||
"gitHead": "481260d148b920b85755dd5f9b65df0bb0db4244" | ||
} |
@@ -5,2 +5,5 @@ # @capacitor/share | ||
The Share API works on iOS, Android, and the Web (using the new [Web Share | ||
API](https://web.dev/web-share/)), though web support is currently spotty. | ||
## Install | ||
@@ -13,2 +16,17 @@ | ||
## Example | ||
```typescript | ||
import { Share } from '@capacitor/share'; | ||
await Share.share({ | ||
title: 'See cool stuff', | ||
text: 'Really awesome thing you need to see right meow', | ||
url: 'http://ionicframework.com/', | ||
dialogTitle: 'Share with buddies', | ||
}); | ||
``` | ||
Each platform uses a different set of fields, but you should supply them all. | ||
## API | ||
@@ -15,0 +33,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27053
350
81