react-native-share 5.1.4 → 5.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -252,7 +252,7 @@ public abstract class ShareIntent {
252
252
  this.fileShare = getFileShare(options);
253
253
  if (this.fileShare.isFile()) {
254
254
  Uri uriFile = this.fileShare.getURI();
255
- this.getIntent().setDataAndType(uriFile, this.fileShare.getType());
255
+ this.getIntent().setType(this.fileShare.getType());
256
256
  this.getIntent().putExtra(Intent.EXTRA_STREAM, uriFile);
257
257
  this.getIntent().addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
258
258
  if (!TextUtils.isEmpty(message)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-share",
3
3
  "description": "Social share, sending simple data to other apps.",
4
- "version": "5.1.4",
4
+ "version": "5.1.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/react-native-community/react-native-share.git"