react-native-share 7.6.5 → 7.6.6
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.
|
@@ -86,14 +86,16 @@ public class InstagramStoriesShare extends SingleShareIntent {
|
|
|
86
86
|
|
|
87
87
|
if (hasBackgroundAsset) {
|
|
88
88
|
String backgroundFileName = "";
|
|
89
|
+
String backgroundType = "image/jpeg";
|
|
89
90
|
|
|
90
91
|
if (this.hasValidKey("backgroundImage", options)) {
|
|
91
92
|
backgroundFileName = options.getString("backgroundImage");
|
|
92
93
|
} else if (this.hasValidKey("backgroundVideo", options)) {
|
|
93
94
|
backgroundFileName = options.getString("backgroundVideo");
|
|
95
|
+
backgroundType = "video/*";
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
ShareFile backgroundAsset = new ShareFile(backgroundFileName,
|
|
98
|
+
ShareFile backgroundAsset = new ShareFile(backgroundFileName, backgroundType, "background", useInternalStorage, this.reactContext);
|
|
97
99
|
|
|
98
100
|
this.intent.setDataAndType(backgroundAsset.getURI(), backgroundAsset.getType());
|
|
99
101
|
this.intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
package/package.json
CHANGED