30 Commits
Author SHA1 Message Date
Rob Hogan 738839c0dd Apply prettier to .yml files + consistent quote style (#57286)
Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57286

We currently have a mix of quote styles in `.yml` files (AI summary below). This applies prettier and reformats everything to single quotes to align with defaults.

Also fixes a couple of cases of over-indentation.

```
Single-quotes only (0 double-quoted scalars):

analyze-pr.yml
 — 12 single, 0 double
api-changes.yml
 — 3 single, 0 double
check-for-reproducer.yml
 — 4 single, 0 double
retry-workflow.yml
 — 1 single, 0 double
Single-quote predominant > double:

autorebase.yml 2 vs 1
create-draft-release.yml 8 vs 2
generate-changelog.yml 3 vs 2
on-issue-labeled.yml 7 vs 2
prebuild-ios-core.yml 59 vs 17
prebuild-ios-dependencies.yml 39 vs 1
stale-bot.yml 18 vs 15
test-all.yml 70 vs 27
Double-quote predominant > single:

bump-podfile-lock.yml 1 vs 10
create-release.yml 3 vs 12
e2e-android-rntester.yml 2 vs 6
e2e-android-templateapp.yml 6 vs 13
e2e-ios-rntester.yml 2 vs 7
e2e-ios-templateapp.yml 2 vs 18
fantom-tests.yml 2 vs 7
monitor-new-issues.yml 3 vs 12
publish-npm.yml 42 vs 50
validate-cxx-api-snapshots.yml 2 vs 23
validate-dotslash-artifacts.yml 2 vs 5
Tie / 1-1:

cache-reaper.yml 1 vs 1
close-pr.yml 1 vs 1
needs-attention.yml 2 vs 2
All files contain single quotes somewhere, but only those 4 are single-quote-exclusive. Most CI-heavy workflows — bump, create-release, e2e-, fantom, monitor, publish-npm, validate- — lean double-quoted, while the pr/issue automation, prebuild ios, test-all, and stale-bot lean single-quoted.
```

Changelog: [Internal]

___

Differential Revision: D109151683

fbshipit-source-id: 24391e906c0dd92fe402224089dce8bb2068b4d9
2026-06-19 07:03:32 -07:00
Samuel Susla 58012fb445 Ship useUnorderedMapInDifferentiator (#56918)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56918

changelog: [internal]

the experiment was neutral, let's ship it to simplify code

Reviewed By: javache

Differential Revision: D105943424

fbshipit-source-id: 3ff2ed1dbcb85f640305c4fcb2485db0a8a312fc
2026-05-22 08:57:50 -07:00
Dawid Małecki f5bd86c311 Add snapshots with new arch only. (#56888)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56888

Adds new variant of snapshots called `newarch` with the `RCT_REMOVE_LEGACY_ARCH` flag set to `true`. This covers changes related to moving legacy code behind the ifndef, causing modifications to the API surface when the flag is enabled.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D105686175

fbshipit-source-id: 9e24fe728ee386fb3ee7f5398fa3c55c39a8df0d
2026-05-19 05:13:57 -07:00
Gang Zhao a78d6f4d0e Exclude metainternal from C++ API snapshots (#56545)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56545

Add */metainternal/* to top-level exclude_patterns in the C++ API snapshot config.
This directory may contain internal headers that are not part of the public React Native
C++ API surface.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D101879633

fbshipit-source-id: a0118c146ba6eca667671bd572cd39c59e339469
2026-04-22 10:02:40 -07:00
Dawid Małecki b60f0c9f04 Change parser config to accept regex in exclude symbols field. (#56367)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56367

Adds support for regex in the `exclude_symbols` field in the C++ API parser config. This enables better scoped definitions of symbols that should be matched.

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D99844594

fbshipit-source-id: 0d2b4f9970c535afa6af8712c9435bdb06c50779
2026-04-09 07:04:52 -07:00
Dawid Małecki f5326c9f33 Exclude deprecated and internal categories from the ReactApple C++ snapshot. (#56351)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56351

Excludes categories marked as `Deprecated` and `Internal` from the ReactApple C++ public API snapshots.

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D99838922

fbshipit-source-id: c0266d0edcd4cef4af3d856ffc55b8a7bd07a299
2026-04-09 07:04:52 -07:00
Dawid Małecki 450d75087c Exclude symbols marked as deprecated from the C++ public API snapshot (#56350)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56350

Excludes symbols  marked as `deprecated`, such as:

- viewRegistry_DEPRECATED
- DEPRECATED_sendUpdatedChildFrames
- nativeProps_DEPRECATED
- findShadowNodeByTag_DEPRECATED
- setNativeProps_DEPRECATED

from the C++ public API snapshot.

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D99838523

fbshipit-source-id: d164564f41b1ac9fa58aac87e34b17fdde135528
2026-04-09 07:04:52 -07:00
Dawid Małecki 4a88cfbee7 Exclude symbols with DO_NOT_USE from the public C++ API snapshot (#56346)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56346

Excludes all symbols and members that consists of `DO_NOT_USE`, like

- findComponentViewWithTag_DO_NOT_USE_DEPRECATED
- propKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN
- setPropKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN
- findComponentDescriptorByHandle_DO_NOT_USE_THIS_IS_BROKEN
- componentViewName_DO_NOT_USE_THIS_IS_BROKEN
- ensurePlaceholderIfEmpty_DO_NOT_USE

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D99834673

fbshipit-source-id: 3744f88fde6d9496506867190aae3f2dbea05fbe
2026-04-09 07:04:52 -07:00
Pieter De Baets 37a18419b1 Add instrumentation tests for FabricMountingManager view lifecycle (#56294)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56294

Add Android instrumentation tests that validate the Java-side and C++ registry
behavior around view preallocation, destruction, and recreation — the core
scenario fixed by D98729251.

Two layers of tests:

1. **Java-side tests** (IntBufferBatchMountItem): Construct mount item int/obj
   buffers manually and execute against MountingManager. Validates CREATE→INSERT
   and Preallocate→Delete→CREATE→INSERT sequences through the Java mount system.

2. **Native registry tests** (FabricMountingManagerTestHelper): JNI hybrid class
   that creates a real C++ FabricMountingManager and exercises the
   allocatedViewRegistry_ lifecycle. Validates that after preallocate + destroy,
   the tag is removed from the registry (the D98729251 fix), so executeMount
   would correctly emit a CREATE instruction.

The native test helper is built as a separate library (libfabricjni_test_helper.so)
under jni/react/fabric/test/, with friend access to FabricMountingManager internals.

Changelog: [Internal]

Reviewed By: Abbondanzo

Differential Revision: D98935855

fbshipit-source-id: 2c41a19e037a34d5500b396836d8f453ab34a109
2026-04-07 07:56:19 -07:00
Dawid Małecki 654d64655a Exclude TinyMap and packAnimatedProps from the public C++ API (#56292)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56292

The TinyMap is a helper class under internal directory, not referenced anywhere in the snapshot, and considered unsafe (from the comment). It is not part of any module, so it is better to remove that from the snapshot.

The `packAnimatedProps` method is used in `AnimationBackend` for translation from `AnimatedProps` to `folly::dynamic` and should not be used outside of React Native.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98907855

fbshipit-source-id: e3a371cc088000a23f1ce1121fda808494979140
2026-04-01 04:14:29 -07:00
Dawid Małecki ef6777ddf3 Exclude iOS-specific symbols from the ReactAndroid C++ API snapshot (#56250)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56250

Excludes iOS-specific symbols from the ReactAndroid C++ API snapshot. The snapshot contains iOS native modules CxxSpec templates, their data structs, and bridging structs that have no relevance on Android. These symbols leaked because the Android codegen generates CxxSpec templates for ALL JavaScript module specs regardless of platform.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98480080

fbshipit-source-id: a5990c4769456ab756095129851eb4e8dbeda912
2026-03-31 08:32:57 -07:00
Dawid Małecki 829a76afa7 Exclude InputAccessory component from the ReactAndroid C++ API snapshot (#56251)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56251

Excludes InputAccessory which is an iOS-only component with no Android support at any layer. In the `InputAccessoryView.js` there is explicit iOS guard which logs warning on Android.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98478125

fbshipit-source-id: 871923e001024971167a7bb2eb900ca3867983a4
2026-03-31 08:32:57 -07:00
Dawid Małecki e90735b4ef Exclude Apple Switch component from the ReactAndroid C++ API snapshot (#56249)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56249

Prevents iOS Switch component leaking into the ReactAndroid snapshot by adding `*/components/switch/iosswitch/*` path to the `exclude_patterns` in the parser config.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98473064

fbshipit-source-id: de25c4cbe839f8a065b8465e48a2b8c2a5ba81d7
2026-03-31 08:32:57 -07:00
Dawid Małecki 0642e41b9c Exclude experimental symbols from the C++ public API snapshot (#56244)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56244

Excludes symbols marked as Experimental from the C++ public API snapshots. Types with the "Experimental" prefix are explicitly not stable API — they represent features still under active development and are subject to change or removal without notice.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98454721

fbshipit-source-id: 7f7488fab6bc94c52b94a3ae2d9a7a7914815d63
2026-03-31 08:32:57 -07:00
Dawid Małecki e78afea6d1 Exclude UnstabeLegacy symbols from stable C++ API snapshot (#56242)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56242

Excluded symbols that contain "UnstableLegacy" from public stable C++ API snapshot, that is `UnstableLegacyViewManagerAutomaticComponentDescriptor` and `UnstableLegacyViewManagerInteropComponentDescriptor`.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98317003

fbshipit-source-id: deb4631a26ecb138007cf4958dbabb57ef3739cc
2026-03-31 08:32:57 -07:00
Dawid Małecki 22b5d25c88 Remove feature flags from the C++ public API snapshots (#56245)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56245

Removes feature flags from the C++ public API snapshots as they are considered private. This greatly reduces snapshots size.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98312529

fbshipit-source-id: e6aad9d930c7c77300329c25668dc2fc3a4686f2
2026-03-31 08:32:57 -07:00
Dawid Małecki fd150efa29 Exclude Android specific symbols from the ReactApple snapshot (#56243)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56243

Modifies C++ API parser config to accept `exclude_symbols` at the platform level and sets `Android` symbols to be excluded from the ReactApple snapshot.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98298766

fbshipit-source-id: 70b39fe4935e6791701c173e7c9e12532c2817a5
2026-03-31 08:32:57 -07:00
Dawid Małecki 77b69a9983 Exclude Fantom symbols from the C++ public API snapshot (#56241)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56241

Strips remaining Fantom symbols from the public API snapshots generated by codegen.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98295521

fbshipit-source-id: 24568b825b2aaa062e2b11dc77a018e403c68ddd
2026-03-31 08:32:57 -07:00
Dawid Małecki d513096133 Add exclude_symbols to the cxx-api parser config (#56240)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56240

There are cases in which we want to strip particular symbols from the snapshot. This diff adds `exclude_symbols` to the parser config to enable definitions of symbol patterns that should be excluded from the snapshot.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98295409

fbshipit-source-id: 47414c1e5060a01dce76d1fc4fdd8ea355bb8d37
2026-03-31 08:32:57 -07:00
Dawid Małecki 7f879769db Exclude stubs from the C++ public API snapshot (#56252)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56252

Removes stubs from the snapshot which should be irrelevant in context of the public surface.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D97478132

fbshipit-source-id: da95c86a02b056e9ece0fbdcbbbced2300c9fbae
2026-03-31 08:32:57 -07:00
Dawid Małecki 868eb6c454 Remove fantom test specific methods from the C++ API snapshot (#56247)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56247

Removes fantom test specific methods, namely:
- NativeFantomTestSpecificMethods,
- FantomForcedCloneCommitHook

from the C++ API snapshot.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D97466201

fbshipit-source-id: b8464ddd242056a1e21db409b738414814550b30
2026-03-31 08:32:57 -07:00
Dawid Małecki b0b30b5a22 Add global exclude patterns to the cxx api config (#56248)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56248

Refactor and add global exclude patterns to the C++ stable API snapshot config. This enables better modularization of shared exclude patterns coming from the assumption that ReactAndroid and ReactApple consists of ReactCommon in their inputs and some paths should not be processed on each platform.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D97465431

fbshipit-source-id: e71daef90853dad8003a0f41b1ea78b8c56bee02
2026-03-31 08:32:57 -07:00
Dawid Małecki 3a80179319 Remove test code from the cxx-api snapshot (#56173)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56173

Removes leaked test code from the snapshot.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D97457090

fbshipit-source-id: ac6aedfa9f4fda8c7f7371fc29a91ce813916777
2026-03-31 08:32:57 -07:00
Jakub Piasecki 5976cff039 Apply doxygen input filters only when needed (#56177)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56177

Changelog: [Internal]

Makes doxygen input filers opt-in via the config file. Those are only needed for objective c files, so there's no need to run them for ReactCommon or ReactAndroid.

Reviewed By: cortinico

Differential Revision: D97489420

fbshipit-source-id: 0503801de60d6c2ae58506f20fcc06feec0501ec
2026-03-22 23:56:16 -07:00
Dawid Małecki c625015c6f Include packages/react-native/Libraries path in ReactApple snapshot (#56060)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56060

There are Objective-C files located in the `packages/react-native/Libraries` paths. This diff modifies the config to tell doxygen to parse them and fixes problem with parsing interfaces and protocols that share the same name.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D96141632

fbshipit-source-id: 76c5873574108eb0f610637ce2bd2eeb54b8537c
2026-03-12 03:16:36 -07:00
Dawid Małecki 3612f53735 Exclude Internal and Private categories (#56035)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56035

Excludes files with `*+Internal.h` and `*+Private.h` categories from the public API `ReactApple` snapshot.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D95953096

fbshipit-source-id: f23aec53631263013a4099e0c443a8c0c15e9589
2026-03-10 09:17:30 -07:00
Jakub Piasecki 4fcd2f9f6d Run codegen for each API view separately (#55997)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55997

Changelog: [Internal]

Updates the C++ API snapshot generator to invoke codegen automatically for each created API view, generating for the specific platform that's being considered.

Reviewed By: cipolleschi

Differential Revision: D95788766

fbshipit-source-id: 8b376542f7822b73e44399c2615c327332378830
2026-03-10 09:09:06 -07:00
Dawid Małecki 97430c8165 Include definitions behind __cplusplus macro (#55902)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55902

Includes definitions behind the `__cplusplus` macro to also be visible in the API snapshot.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D95189538

fbshipit-source-id: 35a632b83b6d6c4f330ac80b52b4ee203f692748
2026-03-05 07:21:42 -08:00
Jakub Piasecki 03c1399163 Update sorting and grouping behavior (#55647)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55647

Changelog: [Internal]

Updates sorting and grouping behavior of C++ API snapshot.

Reviewed By: cipolleschi

Differential Revision: D93407634

fbshipit-source-id: 255deb4cec9a1b357cdfc53b804fc59a994eafe1
2026-02-25 11:16:36 -08:00
Jakub Piasecki e0b90549e7 Integrate codegen into the api snapshot and allow configuration (#55642)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55642

Changelog: [Internal]

Adds a configuration file for the snapshot generation, allowing to create multiple views of the API and different flavors.

It also adds option to include codegen in the snapshot generation. Codegen needs to be executed first, and the path to its output needs to be passed when running the generation.

Reviewed By: cipolleschi

Differential Revision: D92958731

fbshipit-source-id: 42780d25b2bc04f213e697cca0b6bde07d94ca59
2026-02-25 01:12:30 -08:00