Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-share

Package Overview
Dependencies
Maintainers
5
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-share - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

CODEOWNERS

6

CHANGELOG.md

@@ -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) => {

2

package.json
{
"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 [![CircleCI](https://circleci.com/gh/react-native-community/react-native-share/tree/master.svg?style=svg&circle-token=0c6860240abba4e16bd07df0ea805a72b67b8d41)](https://circleci.com/gh/react-native-community/react-native-share/tree/master) [![npm version](https://badge.fury.io/js/react-native-share.svg)](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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc