react-native-macos/React
Andre 279cfec55f feat: make RCTBlobManager TurboModule-compatible (#35047)
Summary:
Currently, RCTBlobManager (the native module for Blob support) cannot be loaded on iOS when the new architecture is enabled.

## Changelog

[General] [Added] - `BlobModule` to `RCTCoreModulesClassProvider`

Pull Request resolved: https://github.com/facebook/react-native/pull/35047

Test Plan:
The snippet below can be used to test Blob support with the new architecture enabled.

```
// App.tsx
import { useEffect } from 'react';
import { View } from 'react-native';
function uriToBlob(uri: any) {
  return new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest();
    xhr.responseType = 'blob';
    xhr.onload = () => {
      const blob = xhr.response;
      resolve(blob);
    };
    xhr.onerror = err => {
      reject(err);
    };
    xhr.open('GET', uri);
    xhr.send();
  });
}

export default function App() {
  useEffect(() => {
    uriToBlob('https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png');
  });
  return <View />;
}

```

Related issue: https://github.com/facebook/react-native/issues/35042

Reviewed By: NickGerleman

Differential Revision: D40716048

Pulled By: cipolleschi

fbshipit-source-id: 17643d230fa7ea83baee363d137d51f87818baa8
2022-10-26 19:59:28 -07:00
..
AccessibilityResources/en.lproj VoiceOver reads Tab elements as "Tab Description" (#30689) 2021-01-15 11:09:01 -08:00
AppSetup Fix React module build error with swift integration on new architecture mode (#34527) 2022-08-30 02:58:10 -07:00
Base 3/n Easy: Add MC to gate parsing unhandled JS errors in C++ 2022-10-18 15:09:23 -07:00
CoreModules feat: make RCTBlobManager TurboModule-compatible (#35047) 2022-10-26 19:59:28 -07:00
CxxBridge Revert D40613108: 4/n Display a RedBox with the JS stack (instead of native stack) when an unhandled JS exceptions occurs - Try 2 2022-10-24 08:56:55 -07:00
CxxLogUtils Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
CxxModule Revert D40613108: 4/n Display a RedBox with the JS stack (instead of native stack) when an unhandled JS exceptions occurs - Try 2 2022-10-24 08:56:55 -07:00
CxxUtils Fix crash in folly object conversion 2022-05-25 03:29:17 -07:00
DevSupport Back out "fixed SDK issue while uploading app in debug scheme" 2022-06-21 10:48:14 -07:00
FBReactNativeSpec Do not build JSI in React-jsi when Hermes is enabled, resolve JSI ODR violation (#35038) 2022-10-20 14:14:23 -07:00
Fabric Drop `using namespace` in .h files 2022-10-24 04:35:28 -07:00
Inspector Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
Modules Minor: Rename RCTNotAllowedInAppWideFabric to RCTNotAllowedInFabricWithoutLegacy 2022-07-08 15:07:55 -07:00
Profiler Add additional Systrace support 2022-09-14 16:29:20 -07:00
Tests Delete preemtive view allocation on iOS 2022-09-09 06:25:58 -07:00
UIUtils Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
Views feat: flex gap bindings (#34974) 2022-10-20 14:53:32 -07:00
React-RCTFabric.podspec bump RTC-Folly to 2021.07.22 (#33841) 2022-06-21 12:36:43 -07:00
third-party.xcconfig bump RTC-Folly to 2021.07.22 (#33841) 2022-06-21 12:36:43 -07:00