react-native-share 12.2.3 → 12.2.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.
- package/README.md +2 -1
- package/ios/WhatsAppShare.m +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
# react-native-share
|
|
1
|
+
# react-native-share 
|
|
2
|
+
[](http://badge.fury.io/js/react-native-share) [](https://github.com/semantic-release/semantic-release)
|
|
2
3
|
|
|
3
4
|
React Native Share, is a simple tool for sharing messages and files with other apps.
|
|
4
5
|
|
package/ios/WhatsAppShare.m
CHANGED
|
@@ -72,8 +72,8 @@ resolve:(RCTPromiseResolveBlock)resolve {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
image = [UIImage imageWithData: data];
|
|
75
|
-
NSString *
|
|
76
|
-
NSString *
|
|
75
|
+
NSString *tempPath = NSTemporaryDirectory();
|
|
76
|
+
NSString *filePath = [tempPath stringByAppendingPathComponent:@"image.jpg"];
|
|
77
77
|
|
|
78
78
|
[UIImageJPEGRepresentation(image, 1.0) writeToFile:filePath atomically:YES];
|
|
79
79
|
|
package/package.json
CHANGED