From 2979663884a4d275ba73c832d048e11ffd2f4a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Fri, 17 Apr 2026 08:50:27 -0700 Subject: [PATCH] Remove legacy Paper renderer shim cleanup from artifact commit workflow (#36297) (#56483) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56483 ## Summary PR #36285 deleted the Paper (legacy) renderer, including the shim file `scripts/rollup/shims/react-native/ReactNative.js`. However, the `runtime_commit_artifacts` workflow still tries to `rm` this file after moving build artifacts into `compiled-rn/`. Since the file no longer exists in the build output, `rm` (without `-f`) fails and kills the entire step. This has caused **every run of the Commit Artifacts workflow to fail since #36285 landed on April 16**, blocking both `builds/facebook-www` and `builds/facebook-fbsource` branches from receiving new build artifacts. This in turn blocks DiffTrain from syncing React changes into Meta's internal monorepo. DiffTrain build for [bf45a68dd35ed08860b6a70fed641dfe6d7d290d](https://github.com/facebook/react/commit/bf45a68dd35ed08860b6a70fed641dfe6d7d290d) Reviewed By: zeyap Differential Revision: D101329586 fbshipit-source-id: d38877d5cc964c46257cb73678f80d0a7c729d90 --- .../Renderer/shims/ReactNativeTypes.js | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js b/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js index bd5cf5eaace..24cc37e31e7 100644 --- a/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js +++ b/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js @@ -7,7 +7,7 @@ * @noformat * @nolint * @flow strict - * @generated SignedSource<> + * @generated SignedSource<<4ab83fd2606d6a4d374ef914f231d9c1>> */ import type { @@ -138,36 +138,6 @@ export type RenderRootOptions = { onDefaultTransitionIndicator?: () => void | (() => void), }; -/** - * Flat ReactNative renderer bundles are too big for Flow to parse efficiently. - * Provide minimal Flow typing for the high-level RN API and call it a day. - */ -export type ReactNativeType = { - findHostInstance_DEPRECATED( - componentOrHandle: ?(React.ElementRef | number), - ): ?PublicInstance, - findNodeHandle( - componentOrHandle: ?(React.ElementRef | number), - ): ?number, - isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean, - dispatchCommand( - handle: PublicInstance, - command: string, - args: Array, - ): void, - sendAccessibilityEvent(handle: PublicInstance, eventType: string): void, - render( - element: React.MixedElement, - containerTag: number, - callback: ?() => void, - options: ?RenderRootOptions, - ): ?React.ElementRef, - unmountComponentAtNode(containerTag: number): void, - unmountComponentAtNodeAndRemoveContainer(containerTag: number): void, - +unstable_batchedUpdates: (fn: (T) => void, bookkeeping: T) => void, - ... -}; - export opaque type Node = mixed; export opaque type InternalInstanceHandle = mixed;