File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1111 "react" : " 16.0.0-alpha.12" ,
1212 "react-native" : " 0.48.4" ,
1313 "react-native-cli" : " ^2.0.1" ,
14- "react-native-fs" : " ^2.5.2 " ,
14+ "react-native-fs" : " ^2.5.1 " ,
1515 "react-native-zip-archive" : " file:../"
1616 },
1717 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ @implementation RNZipArchive
2424RCT_EXPORT_METHOD (unzip:(NSString *)zipPath
2525 destinationPath:(NSString *)destinationPath
2626 resolver:(RCTPromiseResolveBlock)resolve
27- rejecter:(RCTPromiseRejectBlock)reject)
28- {
27+ rejecter:(RCTPromiseRejectBlock)reject) {
2928
3029 [self zipArchiveProgressEvent: 0 total: 1 ]; // force 0%
3130
@@ -44,8 +43,7 @@ @implementation RNZipArchive
4443RCT_EXPORT_METHOD (zip:(NSString *)zipPath
4544 destinationPath:(NSString *)destinationPath
4645 resolver:(RCTPromiseResolveBlock)resolve
47- rejecter:(RCTPromiseRejectBlock)reject)
48- {
46+ rejecter:(RCTPromiseRejectBlock)reject) {
4947
5048 [self zipArchiveProgressEvent: 0 total: 1 ]; // force 0%
5149
@@ -61,6 +59,10 @@ @implementation RNZipArchive
6159 }
6260}
6361
62+ - (dispatch_queue_t )methodQueue {
63+ return dispatch_queue_create (" com.mockingbot.ReactNative.ZipArchiveQueue" , DISPATCH_QUEUE_SERIAL);
64+ }
65+
6466- (void )zipArchiveProgressEvent : (NSInteger )loaded total : (NSInteger )total {
6567 if (total == 0 ) {
6668 return ;
You can’t perform that action at this time.
0 commit comments