mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[ios][storage] lowercase TaskState's to match web sdk
This commit is contained in:
@@ -378,15 +378,15 @@ RCT_EXPORT_METHOD(putFile:(NSString *) path localPath:(NSString *)localPath meta
|
||||
|
||||
- (NSString *)getTaskStatus:(FIRStorageTaskStatus)status {
|
||||
if (status == FIRStorageTaskStatusResume || status == FIRStorageTaskStatusProgress) {
|
||||
return @"RUNNING";
|
||||
return @"running";
|
||||
} else if (status == FIRStorageTaskStatusPause) {
|
||||
return @"PAUSED";
|
||||
return @"paused";
|
||||
} else if (status == FIRStorageTaskStatusSuccess) {
|
||||
return @"SUCCESS";
|
||||
return @"success";
|
||||
} else if (status == FIRStorageTaskStatusFailure) {
|
||||
return @"ERROR";
|
||||
return @"error";
|
||||
} else {
|
||||
return @"UNKNOWN";
|
||||
return @"unknown";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user