Commit e8d99384 authored by Chitrang Singhvi's avatar Chitrang Singhvi

using RCTExecuteOnMainQueue instead of RCTExecuteOnMainThread, as the function...

using RCTExecuteOnMainQueue instead of RCTExecuteOnMainThread, as the function has been removed in react-native 0.42
parent 9e219430
...@@ -108,9 +108,9 @@ RCT_NOT_IMPLEMENTED(-init) ...@@ -108,9 +108,9 @@ RCT_NOT_IMPLEMENTED(-init)
if ([NSThread isMainThread]) { if ([NSThread isMainThread]) {
setImageBlock(loadedImage); setImageBlock(loadedImage);
} else { } else {
RCTExecuteOnMainThread(^{ RCTExecuteOnMainQueue(^{
setImageBlock(loadedImage); setImageBlock(loadedImage);
}, NO); });
} }
} }
}]; }];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment