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 CHANGED
@@ -1,4 +1,5 @@
1
- # react-native-share [![react-native-share](https://circleci.com/gh/react-native-share/react-native-share.svg?style=svg)](https://app.circleci.com/pipelines/github/react-native-share/react-native-share) [![npm version](https://badge.fury.io/js/react-native-share.svg)](http://badge.fury.io/js/react-native-share) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
1
+ # react-native-share ![example workflow](https://github.com/react-native-share/react-native-share/actions/workflows/release.yml/badge.svg)
2
+ [![npm version](https://badge.fury.io/js/react-native-share.svg)](http://badge.fury.io/js/react-native-share) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](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
 
@@ -72,8 +72,8 @@ resolve:(RCTPromiseResolveBlock)resolve {
72
72
  }
73
73
 
74
74
  image = [UIImage imageWithData: data];
75
- NSString * documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
76
- NSString * filePath = [documentsPath stringByAppendingPathComponent:@"/whatsAppTmp.wai"];
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
@@ -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": "12.2.3",
4
+ "version": "12.2.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/react-native-share/react-native-share.git"