react-native-share
Advanced tools
Comparing version
@@ -0,1 +1,7 @@ | ||
#### 1.2.1-5 (2019-05-29) | ||
##### Chores | ||
* **codeowners:** add CODEOWNERS file ([ac67e5cd](https://github.com/react-native-community/react-native-share/commit/ac67e5cd9531e5d554b7b9ac0217c777e4d8f9c4)) | ||
### 1.2.0-4 (2019-05-26) | ||
@@ -2,0 +8,0 @@ |
12
index.js
@@ -173,4 +173,2 @@ /* | ||
INSTAGRAM: NativeModules.RNShare.INSTAGRAM || 'instagram', | ||
INSTAGRAM_STORIES: | ||
NativeModules.RNShare.INSTAGRAM_STORIES || 'instagram-stories', | ||
GOOGLEPLUS: NativeModules.RNShare.GOOGLEPLUS || 'googleplus', | ||
@@ -181,12 +179,2 @@ EMAIL: NativeModules.RNShare.EMAIL || 'email', | ||
static InstagramStories = { | ||
SHARE_BACKGROUND_IMAGE: | ||
NativeModules.RNShare.SHARE_BACKGROUND_IMAGE || 'shareBackgroundImage', | ||
SHARE_STICKER_IMAGE: | ||
NativeModules.RNShare.SHARE_STICKER_IMAGE || 'shareStickerImage', | ||
SHARE_BACKGROUND_AND_STICKER_IMAGE: | ||
NativeModules.RNShare.SHARE_BACKGROUND_AND_STICKER_IMAGE || | ||
'shareBackgroundAndStickerImage', | ||
}; | ||
static open(options: Options | MultipleOptions): Promise<OpenReturn> { | ||
@@ -193,0 +181,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "react-native-share", | ||
"description": "Social share, sending simple data to other apps.", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -194,3 +194,2 @@ # react-native-share [](https://circleci.com/gh/react-native-community/react-native-share/tree/master) [](http://badge.fury.io/js/react-native-share) | ||
| **INSTAGRAM** | yes | yes | no | | ||
| **INSTAGRAM_STORIES** | no | yes | no | | ||
| **GOOGLEPLUS** | yes | yes | no | | ||
@@ -509,39 +508,3 @@ | **EMAIL** | yes | yes | no | | ||
``` | ||
#### Static Values for Instagram Stories | ||
These can be assessed using Share.Social property | ||
For eg. | ||
```javascript | ||
import Share from 'react-native-share'; | ||
const shareOptions = { | ||
method: Share.InstagramStories.SHARE_BACKGROUND_AND_STICKER_IMAGE, | ||
backgroundImage: 'http://urlto.png', | ||
stickerImage: 'data:image/png;base64,<imageInBase64>', //or you can use "data:" link | ||
backgroundBottomColor: '#fefefe', | ||
backgroundTopColor: '#906df4', | ||
attributionURL: 'http://deep-link-to-app', //in beta | ||
social: Share.Social.INSTAGRAM_STORIES | ||
}; | ||
Share.shareSingle(shareOptions); | ||
``` | ||
Supported options for INSTAGRAM_STORIES: | ||
| Name | Type | Description | | ||
| :---- | :------: | :--- | | ||
| backgroundImage | string | URL you want to share | | ||
| stickerImage | string | URL you want to share | | ||
| method | string | [List](#instagram-stories-method-list) | | ||
| backgroundBottomColor | string | (optional) default #837DF4 | | ||
| backgroundTopColor | string | (optional) default #906df4 | | ||
| attributionURL | string | (optional) facebook beta-test | | ||
#### Instagram stories method list | ||
| Name | Required options | | ||
| :---- | :------: | | ||
| **SHARE_BACKGROUND_IMAGE** | backgroundImage | | ||
| **SHARE_STICKER_IMAGE** | stickerImage | | ||
| **SHARE_BACKGROUND_AND_STICKER_IMAGE** | backgroundImage, stickerImage | | ||
#### Adding your implementation of FileProvider | ||
@@ -548,0 +511,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%493017
-2.42%68
-1.45%1793
-0.61%570
-6.1%