Remove globals defined for the React renderer that are now unused (#58454)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/58454

The OSS renderer has been upgraded and it's no longer consuming these globals.

Changelog: [internal]

Reviewed By: christophpurrer

Differential Revision: D119498576

fbshipit-source-id: e0d80a608e1a44c07369207df32c2c968adaf2b3
This commit is contained in:
Rubén Norte authored and meta-codesync[bot] committed 2026-09-10 17:03:25 -07:00
1 parent c613b34020
commit 309d1a6f12
2 files changed
-14

No files matched your search

-6
View File
@@ -20,12 +20,6 @@ if (__DEV__) {
// In bridgeless mode, timers are host functions installed from cpp.
if (global.RN$Bridgeless === true) {
// This is the flag that tells React to use `queueMicrotask` to batch state
// updates, instead of using the scheduler to schedule a regular task.
// We use a global variable because we don't currently have any other
// mechanism to pass feature flags from RN to React in OSS.
global.RN$enableMicrotasksInReact = true;
polyfillGlobal(
'queueMicrotask',
() =>
-8
View File
@@ -95,12 +95,4 @@ export default function setUpDOM() {
'CustomEvent',
() => require('../webapis/dom/events/CustomEvent').default,
);
// Expose a global function that the React renderer can call to check
// if EventTarget-based event dispatching is enabled.
// We use a global function because we don't have another mechanism to pass
// feature flags from RN to React in OSS (similar to RN$enableMicrotasksInReact
// in setUpTimers.js).
global.RN$isNativeEventTargetEventDispatchingEnabled = () =>
require('../featureflags/ReactNativeFeatureFlags').enableNativeEventTargetEventDispatching();
}