Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change method names and import to proper one #219

Merged
merged 1 commit into from
Feb 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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