react-native-share
Advanced tools
Comparing version 1.0.19 to 1.0.20
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
928519
53
256
328