react-native-share 7.6.3 → 7.6.4
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.
|
@@ -98,14 +98,14 @@ public class FacebookStoriesShare extends SingleShareIntent {
|
|
|
98
98
|
backgroundFileName = options.getString("backgroundVideo");
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
ShareFile backgroundAsset = new ShareFile(backgroundFileName, "background", useInternalStorage, this.reactContext);
|
|
101
|
+
ShareFile backgroundAsset = new ShareFile(backgroundFileName, "image/jpeg", "background", useInternalStorage, this.reactContext);
|
|
102
102
|
|
|
103
103
|
this.intent.setDataAndType(backgroundAsset.getURI(), backgroundAsset.getType());
|
|
104
104
|
this.intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
if (this.hasValidKey("stickerImage", options)) {
|
|
108
|
-
ShareFile stickerAsset = new ShareFile(options.getString("stickerImage"), "sticker", useInternalStorage, this.reactContext);
|
|
108
|
+
ShareFile stickerAsset = new ShareFile(options.getString("stickerImage"), "image/png", "sticker", useInternalStorage, this.reactContext);
|
|
109
109
|
|
|
110
110
|
if (!hasBackgroundAsset) {
|
|
111
111
|
this.intent.setType("image/*");
|
package/package.json
CHANGED