Skip to content

Commit 9eedb55

Browse files
authored
Merge pull request joltup#219 from WoLewicki/patch-2
fix: change method names and import to proper one
2 parents ea6fe99 + 0feaf4b commit 9eedb55

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#import "ReactNativeBlobUtilProgress.h"
1313

1414
#if RCT_NEW_ARCH_ENABLED
15-
#import "ReactNativeBlobUtilSpec.h"
15+
#import <ReactNativeBlobUtilSpec/ReactNativeBlobUtilSpec.h>
1616
#endif
1717

1818
__strong RCTEventDispatcher * eventDispatcherRef;
@@ -685,7 +685,7 @@ - (void)hash:(NSString *)path
685685
}
686686

687687
#pragma mark - fs.readStream
688-
RCT_EXPORT_METHOD(readStream:(NSString *)path withEncoding:(NSString *)encoding bufferSize:(int)bufferSize tick:(int)tick streamId:(NSString *)streamId)
688+
RCT_EXPORT_METHOD(readStream:(NSString *)path encoding:(NSString *)encoding bufferSize:(int)bufferSize tick:(int)tick streamId:(NSString *)streamId)
689689
{
690690
if(bufferSize == 0) {
691691
if([[encoding lowercaseString] isEqualToString:@"base64"])
@@ -910,7 +910,7 @@ - (void)copyToInternal:(NSString *)contentUri
910910
}
911911
- (void)copyToMediaStore:(NSDictionary *)filedata
912912
mt:(NSString *) mt
913-
path:(NSString *)
913+
path:(NSString *) path
914914
resolve:(RCTPromiseResolveBlock)resolve
915915
reject:(RCTPromiseRejectBlock)reject
916916
{
@@ -963,7 +963,6 @@ - (void)writeToMediaFile:(NSString *)fileUri
963963
reject(@"ENOT_SUPPORTED", @"This method is not supported on iOS", nil);
964964
}
965965

966-
967966
# pragma mark - New Architecture
968967
#if RCT_NEW_ARCH_ENABLED
969968
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:

0 commit comments

Comments
 (0)