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 @@ -760,10 +760,12 @@ - (void)hash:(NSString *)path
760760}
761761
762762#pragma mark - net.enableProgressReport
763- RCT_EXPORT_METHOD (enableProgressReport:(NSString *)taskId interval:(nonnull NSNumber * )interval count:(nonnull NSNumber * )count)
763+ RCT_EXPORT_METHOD (enableProgressReport:(NSString *)taskId interval:(double )interval count:(double )count)
764764{
765+ NSNumber *intervalNumber = [NSNumber numberWithDouble: interval];
766+ NSNumber *countNumber = [NSNumber numberWithInteger: count];
765767
766- ReactNativeBlobUtilProgress * cfg = [[ReactNativeBlobUtilProgress alloc ] initWithType: Download interval: interval count: count ];
768+ ReactNativeBlobUtilProgress * cfg = [[ReactNativeBlobUtilProgress alloc ] initWithType: Download interval: intervalNumber count: countNumber ];
767769 [[ReactNativeBlobUtilNetwork sharedInstance ] enableProgressReport: taskId config: cfg];
768770}
769771
You can’t perform that action at this time.
0 commit comments