Skip to content

Commit

Permalink
fix: change method names and import to proper one
Browse files Browse the repository at this point in the history
  • Loading branch information
WoLewicki authored Feb 7, 2023
1 parent 2e14e6b commit 0feaf4b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#import "ReactNativeBlobUtilProgress.h"

#if RCT_NEW_ARCH_ENABLED
#import "ReactNativeBlobUtilSpec.h"
#import <ReactNativeBlobUtilSpec/ReactNativeBlobUtilSpec.h>
#endif

__strong RCTEventDispatcher * eventDispatcherRef;
Expand Down Expand Up @@ -677,7 +677,7 @@ - (void)hash:(NSString *)path
}

#pragma mark - fs.readStream
RCT_EXPORT_METHOD(readStream:(NSString *)path withEncoding:(NSString *)encoding bufferSize:(int)bufferSize tick:(int)tick streamId:(NSString *)streamId)
RCT_EXPORT_METHOD(readStream:(NSString *)path encoding:(NSString *)encoding bufferSize:(int)bufferSize tick:(int)tick streamId:(NSString *)streamId)
{
if(bufferSize == 0) {
if([[encoding lowercaseString] isEqualToString:@"base64"])
Expand Down Expand Up @@ -902,7 +902,7 @@ - (void)copyToInternal:(NSString *)contentUri
}
- (void)copyToMediaStore:(NSDictionary *)filedata
mt:(NSString *) mt
path:(NSString *)
path:(NSString *) path
resolve:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject
{
Expand Down Expand Up @@ -955,7 +955,6 @@ - (void)writeToMediaFile:(NSString *)fileUri
reject(@"ENOT_SUPPORTED", @"This method is not supported on iOS", nil);
}


# pragma mark - New Architecture
#if RCT_NEW_ARCH_ENABLED
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
Expand Down

0 comments on commit 0feaf4b

Please sign in to comment.