From e8d993849f9f9cacba7c3a0cbc8aee94220926c3 Mon Sep 17 00:00:00 2001 From: Chitrang Singhvi Date: Wed, 8 Mar 2017 12:13:44 +0530 Subject: [PATCH] using RCTExecuteOnMainQueue instead of RCTExecuteOnMainThread, as the function has been removed in react-native 0.42 --- ios/GLImage.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/GLImage.m b/ios/GLImage.m index 649f734..a9088e0 100644 --- a/ios/GLImage.m +++ b/ios/GLImage.m @@ -108,9 +108,9 @@ RCT_NOT_IMPLEMENTED(-init) if ([NSThread isMainThread]) { setImageBlock(loadedImage); } else { - RCTExecuteOnMainThread(^{ + RCTExecuteOnMainQueue(^{ setImageBlock(loadedImage); - }, NO); + }); } } }]; -- 2.26.2