Skip to content

Commit 6290b21

Browse files
Ron RadtkeRon Radtke
authored andcommitted
Fixing ios issue
fixes #197
1 parent 80628d4 commit 6290b21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ @implementation ReactNativeBlobUtil
3131

3232
@synthesize filePathPrefix;
3333
@synthesize documentController;
34+
@synthesize bridge;
3435

3536
- (dispatch_queue_t) methodQueue {
3637
if(commonTaskQueue == nil)
@@ -67,7 +68,7 @@ - (id) init {
6768
[[NSFileManager defaultManager] createDirectoryAtPath:[ReactNativeBlobUtilFS getTempPath] withIntermediateDirectories:YES attributes:nil error:NULL];
6869
}
6970
dispatch_async(dispatch_get_main_queue(), ^{
70-
eventDispatcherRef = [ReactNativeBlobUtil getRCTEventDispatcher];
71+
eventDispatcherRef = bridge.eventDispatcher;
7172
[ReactNativeBlobUtilNetwork emitExpiredTasks: eventDispatcherRef];
7273
});
7374

0 commit comments

Comments
 (0)