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
This commit is contained in:
zhongwuzw
2023-12-12 06:28:21 -08:00
committed by Facebook GitHub Bot
parent 44d6e4310c
commit cdef53d662
@@ -61,11 +61,11 @@ id<RCTTurboModule> RCTAppSetupDefaultModuleFromClass(Class moduleClass)
} else if (moduleClass == RCTNetworking.class) {
return [[moduleClass alloc]
initWithHandlersProvider:^NSArray<id<RCTURLRequestHandler>> *(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.