-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Expand file tree
/
Copy pathReactNativeFeatureFlags.config.js
More file actions
1139 lines (1132 loc) · 38.4 KB
/
Copy pathReactNativeFeatureFlags.config.js
File metadata and controls
1139 lines (1132 loc) · 38.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
*/
/* eslint sort-keys: 'error' */
import type {FeatureFlagDefinitions} from './types';
/**
* This is the source of truth for React Native feature flags.
*
* If you modify this file, you need to update all the generated files
* running the following script from the repo root:
* yarn featureflags --update
*/
// These flags are only used in tests for the feature flags system
const testDefinitions: FeatureFlagDefinitions = {
common: {
commonTestFlag: {
defaultValue: false,
metadata: {
description: 'Common flag for testing. Do NOT modify.',
expectedReleaseValue: true,
purpose: 'operational',
},
ossReleaseStage: 'none',
},
commonTestFlagWithoutNativeImplementation: {
defaultValue: false,
metadata: {
description:
'Common flag for testing (without native implementation). Do NOT modify.',
expectedReleaseValue: true,
purpose: 'operational',
},
ossReleaseStage: 'none',
skipNativeAPI: true,
},
},
jsOnly: {
jsOnlyTestFlag: {
defaultValue: false,
metadata: {
description: 'JS-only flag for testing. Do NOT modify.',
expectedReleaseValue: true,
purpose: 'operational',
},
ossReleaseStage: 'none',
},
},
};
const definitions: FeatureFlagDefinitions = {
common: {
...testDefinitions.common,
cdpInteractionMetricsEnabled: {
defaultValue: false,
metadata: {
dateAdded: '2025-07-16',
description:
'Enable emitting of InteractionEntry live metrics to the debugger. Requires `enableBridgelessArchitecture`.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
cxxNativeAnimatedEnabled: {
defaultValue: true,
metadata: {
dateAdded: '2025-03-14',
description:
'Use a C++ implementation of Native Animated instead of the platform implementation.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'experimental',
},
defaultTextToOverflowHidden: {
defaultValue: true,
metadata: {
dateAdded: '2026-02-13',
description:
'When enabled, sets the default overflow style for Text components to hidden instead of visible.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
disableEarlyViewCommandExecution: {
defaultValue: false,
metadata: {
dateAdded: '2025-10-07',
description: 'Dispatch view commands in mount item order.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
disableImageViewPreallocationAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2025-11-07',
description:
'Force disable view preallocation for images triggered from createNode off the main thread on Android',
expectedReleaseValue: false,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
disableMountItemReorderingAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2024-10-26',
description:
'Prevent FabricMountingManager from reordering mountItems, which may lead to invalid state on the UI thread',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
disableSubviewClippingAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2025-11-05',
description:
'Force disable subview clipping for ReactViewGroup on Android',
expectedReleaseValue: false,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
disableTextLayoutManagerCacheAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2025-05-28',
description:
'Turns off the global measurement cache used by TextLayoutManager on Android.',
expectedReleaseValue: false,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
disableViewPreallocationAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2025-11-07',
description:
'Force disable view preallocation triggered from createNode off the main thread on Android',
expectedReleaseValue: false,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableAccessibilityOrder: {
defaultValue: false,
metadata: {
dateAdded: '2025-4-3',
description:
'When enabled, the accessibilityOrder prop will propagate to native platforms and define the accessibility order.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'canary',
},
enableAccumulatedUpdatesInRawPropsAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2024-12-10',
description:
'When enabled, Android will accumulate updates in rawProps to reduce the number of mounting instructions for cascading re-renders.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableAndroidTextMeasurementOptimizations: {
defaultValue: false,
metadata: {
dateAdded: '2025-07-01',
description:
'Enables various optimizations throughout the path of measuring text on Android.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableBridgelessArchitecture: {
defaultValue: false,
metadata: {
description: 'Feature flag to enable the new bridgeless architecture.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'canary',
},
enableCppPropsIteratorSetter: {
defaultValue: false,
metadata: {
dateAdded: '2024-09-13',
description:
'Enable prop iterator setter-style construction of Props in C++ (this flag is not used in Java).',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableCustomFocusSearchOnClippedElementsAndroid: {
defaultValue: true,
metadata: {
description:
'This enables the fabric implementation of focus search so that we can focus clipped elements',
expectedReleaseValue: true,
purpose: 'operational',
},
ossReleaseStage: 'none',
},
enableDestroyShadowTreeRevisionAsync: {
defaultValue: false,
metadata: {
dateAdded: '2025-04-29',
description:
'Enables destructor calls for ShadowTreeRevision in the background to reduce UI thread work.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableDifferentiatorMutationVectorPreallocation: {
defaultValue: false,
metadata: {
dateAdded: '2026-02-28',
description:
'Pre-allocate mutation vectors in the Differentiator to reduce reallocation overhead during shadow view diffing.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableDoubleMeasurementFixAndroid: {
defaultValue: false,
metadata: {
description:
'When enabled a subset of components will avoid double measurement on Android.',
expectedReleaseValue: true,
purpose: 'operational',
},
ossReleaseStage: 'none',
},
enableEagerRootViewAttachment: {
defaultValue: false,
metadata: {
dateAdded: '2024-07-28',
description:
'Feature flag to configure eager attachment of the root view/initialisation of the JS code.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableExclusivePropsUpdateAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2025-11-11',
description:
'When enabled, Android will disable Props 1.5 raw value merging when Props 2.0 is available.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableFabricCommitBranching: {
defaultValue: false,
metadata: {
description:
'Enables Fabric commit branching to fix starvation problems and atomic JS updates.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
enableFabricLogs: {
defaultValue: false,
metadata: {
description: 'This feature flag enables logs for Fabric.',
expectedReleaseValue: true,
purpose: 'operational',
},
ossReleaseStage: 'none',
},
enableFlexboxAutoMinSizeInStrictMode: {
defaultValue: false,
metadata: {
dateAdded: '2026-06-02',
description:
'Enables CSS Flexbox §4.5 automatic minimum sizing under strict layout conformance. When enabled, a flex item with an undefined main-axis `min-width`/`min-height` under strict conformance receives a content-derived minimum size (per spec) instead of an undefined (0) minimum. Defaults off so the behaviour can be ramped independently of strict conformance.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'experimental',
},
enableFontScaleChangesUpdatingLayout: {
defaultValue: true,
metadata: {
dateAdded: '2025-04-07',
description:
'Enables font scale changes updating layout for measurable nodes.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableIOSTextBaselineOffsetPerLine: {
defaultValue: false,
metadata: {
dateAdded: '2025-05-21',
description:
'Applies base offset for each line of text separately on iOS.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableIOSViewClipToPaddingBox: {
defaultValue: false,
metadata: {
dateAdded: '2024-08-30',
description: 'iOS Views will clip to their padding box vs border box',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableImagePrefetchingAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2025-06-21',
description:
'When enabled, Android will build and initiate image prefetch requests on ImageShadowNode::layout',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableImageRequestDowngradingForNonVisibleImages: {
defaultValue: false,
metadata: {
dateAdded: '2026-05-21',
description:
'When enabled, ImageShadowNode downgrades image requests to prefetch priority when layout determines that the image does not intersect the viewport.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableImmediateUpdateModeForContentOffsetChanges: {
defaultValue: false,
metadata: {
dateAdded: '2025-07-15',
description:
'Dispatches state updates for content offset changes synchronously on the main thread.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableImperativeFocus: {
defaultValue: false,
metadata: {
dateAdded: '2024-09-13',
description:
'Enable ref.focus() and ref.blur() for all views, not just TextInput.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableInteropViewManagerClassLookUpOptimizationIOS: {
defaultValue: false,
metadata: {
dateAdded: '2025-06-17',
description:
'This is to fix the issue with interop view manager where component descriptor lookup is causing ViewManager to preload.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableIntersectionObserverByDefault: {
defaultValue: false,
metadata: {
description:
'Enables the IntersectionObserver Web API in React Native.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'canary',
},
enableKeyEvents: {
defaultValue: false,
metadata: {
dateAdded: '2025-10-17',
description:
'Enables key up/down/press events to be sent to JS from components',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableLayoutAnimationsOnAndroid: {
defaultValue: false,
metadata: {
description:
'When enabled, LayoutAnimations API will animate state changes on Android.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
enableLayoutAnimationsOnIOS: {
defaultValue: true,
metadata: {
description:
'When enabled, LayoutAnimations API will animate state changes on iOS.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
enableModuleArgumentNSNullConversionIOS: {
defaultValue: false,
metadata: {
description:
'Enable NSNull conversion when handling module arguments on iOS',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
enableMutationObserverByDefault: {
defaultValue: false,
metadata: {
description: 'Enables the MutationObserver Web API in React Native.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
enableNativeCSSParsing: {
defaultValue: false,
metadata: {
dateAdded: '2025-02-07',
description:
'Parse CSS strings using the Fabric CSS parser instead of ViewConfig processing',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableNetworkEventReporting: {
defaultValue: true,
metadata: {
description:
'Enable network event reporting hooks in each native platform through `NetworkReporter` (Web Perf APIs + CDP). This flag should be combined with `fuseboxNetworkInspectionEnabled` to enable Network CDP debugging.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
enablePreparedTextLayout: {
defaultValue: false,
metadata: {
dateAdded: '2025-05-01',
description: 'Enables caching text layout artifacts for later reuse',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enablePropsUpdateReconciliationAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2024-07-12',
description:
'When enabled, Android will receive prop updates based on the differences between the last rendered shadow node and the last committed shadow node.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableRuntimeSchedulerQueueClearingOnError: {
defaultValue: false,
metadata: {
dateAdded: '2026-05-19',
description:
'When enabled, RuntimeScheduler_Modern clears pending tasks and rendering updates before handling an error.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'experimental',
},
enableSchedulerDelegateInvalidation: {
defaultValue: false,
metadata: {
dateAdded: '2026-05-04',
description:
'Gates a defensive guard around Scheduler::uiManagerDidDispatchCommand and uiManagerDidFinishTransaction that prevents queued rendering-update lambdas from dereferencing the SchedulerDelegate after it has been destroyed (use-after-free).',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'experimental',
},
enableSwiftUIBasedFilters: {
defaultValue: false,
metadata: {
dateAdded: '2025-07-30',
description:
'When enabled, it will use SwiftUI for filter effects like blur on iOS.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'canary',
},
enableViewCulling: {
defaultValue: false,
metadata: {
dateAdded: '2025-01-27',
description:
'Enables View Culling: as soon as a view goes off screen, it can be reused anywhere in the UI and pieced together with other items to create new UI elements.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableViewRecycling: {
defaultValue: false,
metadata: {
dateAdded: '2024-07-31',
description:
'Enables View Recycling. When enabled, individual ViewManagers must still opt-in.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableViewRecyclingForImage: {
defaultValue: true,
metadata: {
dateAdded: '2025-09-04',
description:
'Enables View Recycling for <Image> via ReactViewGroup/ReactViewManager.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableViewRecyclingForScrollView: {
defaultValue: false,
metadata: {
dateAdded: '2025-08-20',
description:
'Enables View Recycling for <ScrollView> via ReactViewGroup/ReactViewManager.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableViewRecyclingForText: {
defaultValue: true,
metadata: {
dateAdded: '2025-02-05',
description:
'Enables View Recycling for <Text> via ReactTextView/ReactTextViewManager.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableViewRecyclingForView: {
defaultValue: true,
metadata: {
dateAdded: '2025-02-05',
description:
'Enables View Recycling for <View> via ReactViewGroup/ReactViewManager.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableVirtualViewContainerStateExperimental: {
defaultValue: false,
metadata: {
dateAdded: '2025-10-09',
description:
'Enables the experimental version of `VirtualViewContainerState`.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
fixDifferentiatorParentTagForUnflattenCase: {
defaultValue: false,
metadata: {
dateAdded: '2026-04-18',
description:
'Fix incorrect parentTag passed as parentTagForUpdate in the unflatten-unflatten branch of calculateShadowViewMutationsFlattener, which causes UPDATE mutations to reference a parent being created in the same batch.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
fixMappingOfEventPrioritiesBetweenFabricAndReact: {
defaultValue: false,
metadata: {
dateAdded: '2024-06-18',
description:
'Uses the default event priority instead of the discreet event priority by default when dispatching events from Fabric to React.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
fixYogaFlexBasisFitContentInMainAxis: {
defaultValue: false,
metadata: {
dateAdded: '2026-03-09',
description:
'Fix flex basis computation to not apply FitContent constraint in the main axis for non-measure container nodes, preventing unnecessary re-measurement in scroll containers.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
fuseboxAssertSingleHostState: {
defaultValue: true,
metadata: {
description:
'Enable system assertion validating that Fusebox is configured with a single host. When set, the CDP backend will dynamically disable features (Perf and Network) in the event that multiple hosts are registered (undefined behaviour), and broadcast this over `ReactNativeApplication.systemStateChanged`.',
expectedReleaseValue: true,
purpose: 'operational',
},
ossReleaseStage: 'stable',
},
fuseboxEnabledRelease: {
defaultValue: false,
metadata: {
description:
'Flag determining if the React Native DevTools (Fusebox) CDP backend should be enabled in release builds. This flag is global and should not be changed across React Host lifetimes.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
fuseboxFrameRecordingEnabled: {
defaultValue: false,
metadata: {
dateAdded: '2026-03-05',
description:
'Enable frame timings and screenshots support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
fuseboxNetworkInspectionEnabled: {
defaultValue: true,
metadata: {
dateAdded: '2024-01-31',
description:
'Enable network inspection support in the React Native DevTools CDP backend. Requires `enableBridgelessArchitecture`. This flag is global and should not be changed across React Host lifetimes.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
fuseboxScreenshotCaptureEnabled: {
defaultValue: false,
metadata: {
dateAdded: '2026-04-01',
description:
'Enable Page.captureScreenshot CDP method support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
hideOffscreenVirtualViewsOnIOS: {
defaultValue: false,
metadata: {
dateAdded: '2025-06-30',
description:
'Hides offscreen VirtualViews on iOS by setting hidden = YES to avoid extra cost of views',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
optimizedAnimatedPropUpdates: {
defaultValue: false,
metadata: {
dateAdded: '2026-04-07',
description:
'When enabled, uses optimized platform-specific paths to apply animated props synchronously. On Android, this uses a batched int/double buffer protocol with a single JNI call. On iOS, this passes AnimatedProps directly through the delegate chain and applies them via cloneProps, avoiding the folly::dynamic round-trip.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
overrideBySynchronousMountPropsAtMountingAndroid: {
defaultValue: true,
metadata: {
dateAdded: '2025-09-04',
description:
'Override props at mounting with synchronously mounted (i.e. direct manipulation) props from Native Animated.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
perfIssuesEnabled: {
defaultValue: false,
metadata: {
dateAdded: '2025-10-24',
description:
'Enable reporting Performance Issues (`detail.devtools.performanceIssue`). Displayed in the V2 Performance Monitor and the "Performance Issues" sub-panel in DevTools.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
perfMonitorV2Enabled: {
defaultValue: false,
metadata: {
dateAdded: '2025-07-16',
description:
'Enable the V2 in-app Performance Monitor. This flag is global and should not be changed across React Host lifetimes.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
preparedTextCacheSize: {
defaultValue: 200,
metadata: {
dateAdded: '2025-06-25',
description: 'Number cached PreparedLayouts in TextLayoutManager cache',
expectedReleaseValue: 200,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
preventShadowTreeCommitExhaustion: {
defaultValue: false,
metadata: {
dateAdded: '2025-07-23',
description:
'Enables a new mechanism in ShadowTree to prevent problems caused by multiple threads trying to commit concurrently. If a thread tries to commit a few times unsuccessfully, it will acquire a lock and try again.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'experimental',
},
redBoxV2Android: {
defaultValue: false,
metadata: {
dateAdded: '2026-03-25',
description:
'Use the redesigned RedBox error overlay on Android, styled to match the LogBox visual language.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
redBoxV2IOS: {
defaultValue: false,
metadata: {
dateAdded: '2026-03-25',
description:
'Use the redesigned RedBox error overlay on iOS, styled to match the LogBox visual language.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
shouldPressibilityUseW3CPointerEventsForHover: {
defaultValue: false,
metadata: {
description:
'Function used to enable / disable Pressibility from using W3C Pointer Events for its hover callbacks',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
shouldTriggerResponderTransferOnScrollAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2025-09-30',
description:
'Do not emit touchcancel from Android ScrollView, instead native topScroll event will trigger responder transfer and terminate in RN renderer.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
skipActivityIdentityAssertionOnHostPause: {
defaultValue: false,
metadata: {
dateAdded: '2025-07-15',
description:
'Skip activity identity assertion in ReactHostImpl::onHostPause()',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
syncAndroidClipBoundsWithOverflow: {
defaultValue: false,
metadata: {
description:
'Override getClipBounds on Android views to return the padding box when overflow is hidden',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
traceTurboModulePromiseRejectionsOnAndroid: {
defaultValue: false,
metadata: {
description:
'Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.',
expectedReleaseValue: true,
purpose: 'operational',
},
ossReleaseStage: 'none',
},
updateRuntimeShadowNodeReferencesOnCommit: {
defaultValue: false,
metadata: {
dateAdded: '2025-04-15',
description:
'When enabled, runtime shadow node references will be updated during the commit. This allows running RSNRU from any thread without corrupting the renderer state.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
updateRuntimeShadowNodeReferencesOnCommitThread: {
defaultValue: false,
metadata: {
dateAdded: '2026-02-11',
description:
'When enabled, runtime shadow node references will be updated during the commit only on the allowed thread.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
useAlwaysAvailableJSErrorHandling: {
defaultValue: false,
metadata: {
description:
'In Bridgeless mode, use the always available javascript error reporting pipeline.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
useFabricInterop: {
defaultValue: true,
metadata: {
description:
'Should this application enable the Fabric Interop Layer for Android? If yes, the application will behave so that it can accept non-Fabric components and render them on Fabric. This toggle is controlling extra logic such as custom event dispatching that are needed for the Fabric Interop Layer to work correctly.',
expectedReleaseValue: false,
purpose: 'release',
},
ossReleaseStage: 'none',
},
useNativeViewConfigsInBridgelessMode: {
defaultValue: false,
metadata: {
dateAdded: '2024-04-03',
description:
'When enabled, the native view configs are used in bridgeless mode.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'canary',
},
useNestedScrollViewAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2026-01-16',
description:
'When enabled, ReactScrollView will extend NestedScrollView instead of ScrollView on Android for improved nested scrolling support.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
useOptimizedViewRegistryOnAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2026-04-28',
description:
'Use MutableIntObjectMap with ReadWriteLock instead of ConcurrentHashMap for the view registry in SurfaceMountingManager to reduce memory overhead and GC pressure.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
useSharedAnimatedBackend: {
defaultValue: false,
metadata: {
dateAdded: '2025-08-2',
description: 'Use shared animation backend in C++ Animated',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'experimental',
},
useTraitHiddenOnAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2025-10-9',
description: 'Use Trait::hidden on Android',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
useTurboModuleInterop: {
defaultValue: false,
metadata: {
dateAdded: '2024-07-28',
description:
'In Bridgeless mode, should legacy NativeModules use the TurboModule system?',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'canary',
},
viewCullingOutsetRatio: {
defaultValue: 0,
metadata: {
dateAdded: '2025-09-18',
description:
'Outset the culling context frame with the provided ratio. The culling context frame size will be outset by width * ratio on the left and right, and height * ratio on the top and bottom.',
expectedReleaseValue: 0,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
viewTransitionEnabled: {
defaultValue: false,
metadata: {
dateAdded: '2026-02-09',
description:
'Enable the View Transition API for animating transitions between views.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
viewTransitionUseHardwareBitmapAndroid: {
defaultValue: false,
metadata: {
dateAdded: '2026-05-04',
description:
'Use hardware bitmaps for view transition snapshots on Android.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
virtualViewPrerenderRatio: {
defaultValue: 5,
metadata: {
description: 'Initial prerender ratio for VirtualView.',
expectedReleaseValue: 5,
purpose: 'operational',
},
ossReleaseStage: 'none',
},
},
jsOnly: {
...testDefinitions.jsOnly,
animatedDeferStartOfTimingAnimations: {
defaultValue: false,
metadata: {
dateAdded: '2026-05-26',
description:
'When enabled, the JS Animated layer defers the start of native-driven timing animations to the first rendered frame and re-anchors timing to prevent skipping initial frames when the UI thread is busy with layout work.',