Skip to content

Commit

Permalink
fix(ios): add nonnull on timeout to avoid a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Apr 3, 2024
1 parent 6f622fb commit 9b7d311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNUploader.mm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ @interface RCT_EXTERN_REMAP_MODULE(ApiVideoUploader, RNUploader, NSObject<RCTBri
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(setTimeout:(NSNumber)timeout)
RCT_EXTERN_METHOD(setTimeout:(nonnull NSNumber)timeout)

// MARK: Regular upload
RCT_EXTERN_METHOD(uploadWithUploadToken:(nonnull NSString)token:(nonnull NSString)filePath:(NSString)videoId
Expand Down

0 comments on commit 9b7d311

Please sign in to comment.