File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -741,10 +741,12 @@ - (void)hash:(NSString *)path
741741}
742742
743743#pragma mark - net.enableProgressReport
744- RCT_EXPORT_METHOD (enableProgressReport:(NSString *)taskId interval:(nonnull NSNumber * )interval count:(nonnull NSNumber * )count)
744+ RCT_EXPORT_METHOD (enableProgressReport:(NSString *)taskId interval:(double )interval count:(double )count)
745745{
746+ NSNumber *intervalNumber = [NSNumber numberWithDouble: interval];
747+ NSNumber *countNumber = [NSNumber numberWithInteger: count];
746748
747- ReactNativeBlobUtilProgress * cfg = [[ReactNativeBlobUtilProgress alloc ] initWithType: Download interval: interval count: count ];
749+ ReactNativeBlobUtilProgress * cfg = [[ReactNativeBlobUtilProgress alloc ] initWithType: Download interval: intervalNumber count: countNumber ];
748750 [[ReactNativeBlobUtilNetwork sharedInstance ] enableProgressReport: taskId config: cfg];
749751}
750752
You can’t perform that action at this time.
0 commit comments