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

react-native-share

Package Overview
Dependencies
Maintainers
1
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.0.19 to 1.0.20

jsconfig.json

2

package.json
{
"name": "react-native-share",
"description": "Social Share, Sending Simple Data to Other Apps",
"version": "1.0.19",
"version": "1.0.20",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -41,5 +41,5 @@ # react-native-share [![npm version](https://badge.fury.io/js/react-native-share.svg)](http://badge.fury.io/js/react-native-share)

```
compile project(':react-native-share')
```
```
compile project(':react-native-share')
```

@@ -98,2 +98,3 @@ #### Windows

## how it looks:

@@ -108,2 +109,3 @@

### Example code
```javascript

@@ -294,1 +296,36 @@ import React, { Component } from 'react';

```
### Url format when sharing a file
#### Share base 64 file
When share a base 64 file, please follow the format below:
```
url: "data:<data_type>/<file_extension>;base64,<base64_data>"
```
For example, when share a base 64 `mp3` file, the `url` should be:
```
url: "data:audio/mp3;base64,<base64_data>"
```
When share a base 64 image file with `png` file extension, the `url` should be:
```
url: "data:image/png;base64,<base64_data>"
```
#### Share file directly
When share a local file directly, please follow the format below:
```
url: "file://<file_path>",
```
For example, when share a `pdf` file from: `/storage/emulated/0/demo/test.pdf`, the `url` should be:
```
url: "file:///storage/emulated/0/demo/test.pdf"
```
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2"
},

@@ -5,0 +5,0 @@ "frameworks": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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