File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -533,5 +533,7 @@ module.exports = {
533
533
AsyncLocalStorage : 'readonly' ,
534
534
async_hooks : 'readonly' ,
535
535
globalThis : 'readonly' ,
536
+
537
+ RN$Bridgeless : 'readonly' ,
536
538
} ,
537
539
} ;
Original file line number Diff line number Diff line change @@ -82,7 +82,10 @@ export const enableAsyncActions = false;
82
82
83
83
export const alwaysThrottleRetries = false ;
84
84
85
- export const useMicrotasksForSchedulingInFabric = false ;
85
+ const isBridgeless : boolean =
86
+ typeof RN$Bridgeless !== 'undefined' && ! ! RN$Bridgeless ;
87
+
88
+ export const useMicrotasksForSchedulingInFabric = isBridgeless ;
86
89
export const passChildrenWhenCloningPersistedNodes = false ;
87
90
export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__ ;
88
91
export const disableClientCache = true ;
Original file line number Diff line number Diff line change 7
7
* @flow
8
8
*/
9
9
10
+ // eslint-disable-next-line no-unused-vars
11
+ declare const RN$Bridgeless: boolean ;
12
+
10
13
declare module 'ReactNativeInternalFeatureFlags' {
11
14
declare export var alwaysThrottleRetries : boolean ;
12
15
declare export var enableComponentStackLocations : boolean ;
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ module.exports = {
42
42
// Fabric. See https://github.com/facebook/react/pull/15490
43
43
// for more information
44
44
nativeFabricUIManager : 'readonly' ,
45
+ // RN Bridgeless mode flag
46
+ RN$Bridgeless : 'readonly' ,
45
47
// Trusted Types
46
48
trustedTypes : 'readonly' ,
47
49
// RN supports this
You can’t perform that action at this time.
0 commit comments