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
This commit is contained in:
Dawid Małecki authored and meta-codesync[bot] committed 2026-05-19 05:13:57 -07:00
1 parent 75e1f06b66
commit f5bd86c311
4 files changed
+39563

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+9
View File
@@ -43,6 +43,9 @@ platforms:
definitions:
NDEBUG: 1
REACT_NATIVE_PRODUCTION: 1
newarch:
definitions:
RCT_REMOVE_LEGACY_ARCH: 1
ReactAndroid:
codegen:
platform: android
@@ -73,6 +76,9 @@ platforms:
definitions:
NDEBUG: 1
REACT_NATIVE_PRODUCTION: 1
newarch:
definitions:
RCT_REMOVE_LEGACY_ARCH: 1
# ReactIOS?
ReactApple:
codegen:
@@ -110,3 +116,6 @@ platforms:
definitions:
NDEBUG: 1
REACT_NATIVE_PRODUCTION: 1
newarch:
definitions:
RCT_REMOVE_LEGACY_ARCH: 1