File tree 4 files changed +7
-3
lines changed
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ For RN >= 0.61 please install react-native-fs at version >= @2.16.0!
25
25
26
26
View the changelog [ here] ( https://github.com/itinance/react-native-fs/blob/master/CHANGELOG.md ) .
27
27
28
- ## Usage (iOS)
28
+ ## Usage (iOS/macOS )
29
29
30
30
First you need to install react-native-fs:
31
31
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Pod::Spec.new do |s|
12
12
13
13
s . ios . deployment_target = '8.0'
14
14
s . tvos . deployment_target = '9.2'
15
+ s . osx . deployment_target = '10.10'
15
16
16
17
s . source = { :git => "https://github.com/itinance/react-native-fs" , :tag => "v#{ s . version } " }
17
18
s . source_files = '*.{h,m}'
Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ + (BOOL)requiresMainQueueSetup
747
747
748
748
749
749
// [PHAsset fetchAssetsWithALAssetURLs] is deprecated and not supported in Mac Catalyst
750
- #if !TARGET_OS_UIKITFORMAC
750
+ #if !TARGET_OS_UIKITFORMAC && !TARGET_OS_OSX
751
751
/* *
752
752
* iOS Only: copy images from the assets-library (camera-roll) to a specific path, asuming
753
753
* JPEG-Images.
@@ -844,7 +844,7 @@ + (BOOL)requiresMainQueueSetup
844
844
#endif
845
845
846
846
// [PHAsset fetchAssetsWithALAssetURLs] is deprecated and not supported in Mac Catalyst
847
- #if !TARGET_OS_UIKITFORMAC
847
+ #if !TARGET_OS_UIKITFORMAC && !TARGET_OS_OSX
848
848
/* *
849
849
* iOS Only: copy videos from the assets-library (camera-roll) to a specific path as mp4-file.
850
850
*
Original file line number Diff line number Diff line change 1
1
#import < Foundation/Foundation.h>
2
+
3
+ #if !TARGET_OS_OSX
2
4
#import < MobileCoreServices/MobileCoreServices.h>
5
+ #endif
3
6
4
7
typedef void (^UploadCompleteCallback)(NSString *, NSURLResponse *);
5
8
typedef void (^UploadErrorCallback)(NSError *);
You can’t perform that action at this time.
0 commit comments