File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,12 +20,6 @@ if (__DEV__) {
2020
2121// In bridgeless mode, timers are host functions installed from cpp.
2222if ( global . RN$Bridgeless === true ) {
23- // This is the flag that tells React to use `queueMicrotask` to batch state
24- // updates, instead of using the scheduler to schedule a regular task.
25- // We use a global variable because we don't currently have any other
26- // mechanism to pass feature flags from RN to React in OSS.
27- global . RN$enableMicrotasksInReact = true ;
28-
2923 polyfillGlobal (
3024 'queueMicrotask' ,
3125 ( ) =>
Original file line number Diff line number Diff line change @@ -95,12 +95,4 @@ export default function setUpDOM() {
9595 'CustomEvent' ,
9696 ( ) => require ( '../webapis/dom/events/CustomEvent' ) . default ,
9797 ) ;
98-
99- // Expose a global function that the React renderer can call to check
100- // if EventTarget-based event dispatching is enabled.
101- // We use a global function because we don't have another mechanism to pass
102- // feature flags from RN to React in OSS (similar to RN$enableMicrotasksInReact
103- // in setUpTimers.js).
104- global . RN$isNativeEventTargetEventDispatchingEnabled = ( ) =>
105- require ( '../featureflags/ReactNativeFeatureFlags' ) . enableNativeEventTargetEventDispatching ( ) ;
10698}
You can’t perform that action at this time.
0 commit comments