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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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