react-native-macos/React/CoreModules
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
..
BUCK Revert D40333083: Support persisted settings in Android + iOS 2022-10-26 12:28:44 -07:00
CoreModulesPlugins.h feat: make RCTBlobManager TurboModule-compatible (#35047) 2022-10-26 19:59:28 -07:00
CoreModulesPlugins.mm feat: make RCTBlobManager TurboModule-compatible (#35047) 2022-10-26 19:59:28 -07:00
RCTAccessibilityManager+Internal.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAccessibilityManager.h feat: Add support for "Prefer Cross-Fade Transitions" into AccessibilityInfo (#34406) 2022-08-25 10:45:15 -07:00
RCTAccessibilityManager.mm feat: Add support for "Prefer Cross-Fade Transitions" into AccessibilityInfo (#34406) 2022-08-25 10:45:15 -07:00
RCTActionSheetManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTActionSheetManager.mm feat: Add dismissActionSheet method to ActionSheetIOS (#33189) 2022-03-11 16:33:17 -08:00
RCTAlertController.h Back out "Fix `Alert` not showing in an app using `UIScene`" 2022-09-17 07:05:37 -07:00
RCTAlertController.m Back out "Fix `Alert` not showing in an app using `UIScene`" 2022-09-17 07:05:37 -07:00
RCTAlertManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAlertManager.mm Back out "Fix `Alert` not showing in an app using `UIScene`" 2022-09-17 07:05:37 -07:00
RCTAppState.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAppState.mm Fix AppState by removing guard for bridge, since it doesn't use bridge 2022-05-01 13:36:09 -07:00
RCTAppearance.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAppearance.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAsyncLocalStorage.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAsyncLocalStorage.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTClipboard.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTClipboard.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTDevLoadingView.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTDevLoadingView.mm Modularlize RCTConstants.h - Move Bridge-only constants into a separate file 2022-09-08 19:56:22 -07:00
RCTDevMenu.h Add hotkeysEnabled property to RCTDevMenu for iOS 2022-04-20 13:20:06 -07:00
RCTDevMenu.mm Add hotkeysEnabled property to RCTDevMenu for iOS 2022-04-20 13:20:06 -07:00
RCTDevSettings.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTDevSettings.mm Modularlize RCTConstants.h - Move Bridge-only constants into a separate file 2022-09-08 19:56:22 -07:00
RCTDevSplitBundleLoader.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTDevSplitBundleLoader.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTDeviceInfo.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTDeviceInfo.mm prevent from publishing dimensions change event when app changes state (#34014) 2022-06-28 08:56:25 -07:00
RCTEventDispatcher.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTEventDispatcher.mm Possible fix for convertIdToFollyDynamic crash in RCTBaseTextInputView and RCTEventDispatcher 2022-07-25 18:14:46 -07:00
RCTExceptionsManager.h Reland D38460203 2022-09-07 14:41:45 -07:00
RCTExceptionsManager.mm Reland D38460203 2022-09-07 14:41:45 -07:00
RCTFPSGraph.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTFPSGraph.m add casts for implicit int to float 2022-04-21 12:18:53 -07:00
RCTI18nManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTI18nManager.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTKeyboardObserver.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTKeyboardObserver.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTLogBox.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTLogBox.mm Don't display Paper surface from Logbox if Bridge is invalid 2022-05-10 16:25:47 -07:00
RCTLogBoxView.h Ensure LogBox uses UIWindowScene API for opening its view 2022-04-25 10:39:26 -07:00
RCTLogBoxView.mm Minor: Rename RCTNotAllowedInAppWideFabric to RCTNotAllowedInFabricWithoutLegacy 2022-07-08 15:07:55 -07:00
RCTPerfMonitor.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTPlatform.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTPlatform.mm Remove folly import in GenerateModuleObjCpp 2022-03-22 17:10:18 -07:00
RCTRedBox.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTRedBox.mm Use monospace font for RCTRedBox.mm message (#34780) 2022-09-27 04:51:52 -07:00
RCTSourceCode.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSourceCode.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTStatusBarManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTStatusBarManager.mm Remove folly import in GenerateModuleObjCpp 2022-03-22 17:10:18 -07:00
RCTTiming.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTiming.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTWebSocketExecutor.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTWebSocketExecutor.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTWebSocketModule.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTWebSocketModule.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
React-CoreModules.podspec Do not build JSI in React-jsi when Hermes is enabled, resolve JSI ODR violation (#35038) 2022-10-20 14:14:23 -07:00