File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 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!
2525
2626View the changelog [ here] ( https://github.com/itinance/react-native-fs/blob/master/CHANGELOG.md ) .
2727
28- ## Usage (iOS)
28+ ## Usage (iOS/macOS )
2929
3030First you need to install react-native-fs:
3131
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Pod::Spec.new do |s|
1212
1313 s . ios . deployment_target = '8.0'
1414 s . tvos . deployment_target = '9.2'
15+ s . osx . deployment_target = '10.10'
1516
1617 s . source = { :git => "https://github.com/itinance/react-native-fs" , :tag => "v#{ s . version } " }
1718 s . source_files = '*.{h,m}'
Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ + (BOOL)requiresMainQueueSetup
747747
748748
749749// [PHAsset fetchAssetsWithALAssetURLs] is deprecated and not supported in Mac Catalyst
750- #if !TARGET_OS_UIKITFORMAC
750+ #if !TARGET_OS_UIKITFORMAC && !TARGET_OS_OSX
751751/* *
752752 * iOS Only: copy images from the assets-library (camera-roll) to a specific path, asuming
753753 * JPEG-Images.
@@ -844,7 +844,7 @@ + (BOOL)requiresMainQueueSetup
844844#endif
845845
846846// [PHAsset fetchAssetsWithALAssetURLs] is deprecated and not supported in Mac Catalyst
847- #if !TARGET_OS_UIKITFORMAC
847+ #if !TARGET_OS_UIKITFORMAC && !TARGET_OS_OSX
848848/* *
849849 * iOS Only: copy videos from the assets-library (camera-roll) to a specific path as mp4-file.
850850 *
Original file line number Diff line number Diff line change 11#import < Foundation/Foundation.h>
2+
3+ #if !TARGET_OS_OSX
24#import < MobileCoreServices/MobileCoreServices.h>
5+ #endif
36
47typedef void (^UploadCompleteCallback)(NSString *, NSURLResponse *);
58typedef void (^UploadErrorCallback)(NSError *);
You can’t perform that action at this time.
0 commit comments