From cdef53d662766a0020d80aaed397c9ffc5777811 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Tue, 12 Dec 2023 06:28:21 -0800 Subject: [PATCH] Fabric: Fixes image blob url not work (#41881) Summary: Added image blob url support. Before: ![image](https://github.com/facebook/react-native/assets/5061845/35835e06-1946-4cc0-9f09-ad8201c7d9b5) After: ![image](https://github.com/facebook/react-native/assets/5061845/cde4b3cf-039c-42ba-b1d0-15e5e898df72) ## Changelog: [IOS] [FIXED] - Fabric: Fixes image blob url not work Pull Request resolved: https://github.com/facebook/react-native/pull/41881 Test Plan: none. Reviewed By: cortinico Differential Revision: D52044019 Pulled By: ryancat fbshipit-source-id: d8d8b863ddd24099ee1c2692dbe698844c0bece9 --- .../Libraries/AppDelegate/RCTAppSetupUtils.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm b/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm index 3127588b7de..7e522f9742b 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm @@ -61,11 +61,11 @@ id RCTAppSetupDefaultModuleFromClass(Class moduleClass) } else if (moduleClass == RCTNetworking.class) { return [[moduleClass alloc] initWithHandlersProvider:^NSArray> *(RCTModuleRegistry *moduleRegistry) { - return @[ - [RCTHTTPRequestHandler new], - [RCTDataRequestHandler new], - [RCTFileRequestHandler new], - ]; + return [NSArray arrayWithObjects:[RCTHTTPRequestHandler new], + [RCTDataRequestHandler new], + [RCTFileRequestHandler new], + [moduleRegistry moduleForName:"BlobModule"], + nil]; }]; } // No custom initializer here.