Skip to content

Commit 34779df

Browse files
Mugilan Kumarasamymeta-codesync[bot]
authored andcommitted
iOS - Image Timeout Exception Issue Fix (#55519)
Summary: Pull Request resolved: #55519 Changelog: [Internal] The current 5-second timeout in RCTSyncImageManager seems insufficient for image loading operations in test environments, and it’s causing spurious timeout errors. Have tried to increase the timeout to 20 seconds to give more headroom for image loading operations to complete successfully. Reviewed By: javache Differential Revision: D92504548 fbshipit-source-id: e43d2e6a2292a1a6d2a26f8c54d01126e1f77aa6
1 parent 4e5d45f commit 34779df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager

packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/RCTSyncImageManager.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ - (ImageRequest)requestImage:(ImageSource)imageSource surfaceId:(SurfaceId)surfa
9090
partialLoadBlock:nil
9191
completionBlock:completionBlock];
9292

93-
auto result = dispatch_group_wait(imageWaitGroup, dispatch_time(DISPATCH_TIME_NOW, 5 * NSEC_PER_SEC));
93+
auto result = dispatch_group_wait(imageWaitGroup, dispatch_time(DISPATCH_TIME_NOW, 20 * NSEC_PER_SEC));
9494
if (result != 0) {
9595
RCTLogError(@"Image timed out in test environment for url: %@", loaderRequest.imageURL);
9696
}

0 commit comments

Comments
 (0)