1 parent e0adedd commit dfcb0a2Copy full SHA for dfcb0a2
1 file changed
Libraries/Image/RCTImageLoader.m
@@ -67,7 +67,9 @@ + (void)loadImageWithTag:(NSString *)imageTag callback:(void (^)(NSError *error,
67
ALAssetRepresentation *representation = [asset defaultRepresentation];
68
ALAssetOrientation orientation = [representation orientation];
69
UIImage *image = [UIImage imageWithCGImage:[representation fullResolutionImage] scale:1.0f orientation:(UIImageOrientation)orientation];
70
- callback(nil, image);
+ dispatch_async(dispatch_get_main_queue(), ^{
71
+ callback(nil, image);
72
+ });
73
}
74
});
75
} else {
0 commit comments