You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(iOS, Stack): remove legacy architecture related code (#3788)
## Description
This PR removes legacy architecture related code from Stack related
files.
NOTE: Public headers in the RNScreens module are processed by the Clang
dependency
scanner without any preprocessor defines. Previously,
`RCT_NEW_ARCH_ENABLED`
guards shielded the scanner from C++ headers by falling through
to the Paper (ObjC-only) branches.
With Paper code removed, the scanner now hits C++ headers
unconditionally
and fails on <atomic> and other C++ stdlib headers.
This PR guards C++ content (imports, namespaces, LayoutMetrics, method
signatures)
with `#if defined(__cplusplus)`.
Closes
https://github.com/issues/assigned?issue=software-mansion%7Creact-native-screens-labs%7C1035
## Changes
- remove `#ifdef RCT_NEW_ARCH_ENABLED` guards (replace them with `#if
defined(__cplusplus)` when needed)
- remove methods not used on Fabric architecture
- provides minimal `UIView` fallbacks for the scanner
- remove Paper-only imports
## After - visual documentation
https://github.com/user-attachments/assets/c4471a88-f081-40e7-a6c2-27d940cdd599
## Test plan
Check if app builds and tests for Stack work correctly.
## Checklist
- [ ] Included code example that can be used to test this change.
- [ ] Updated / created local changelog entries in relevant test files.
- [ ] For visual changes, included screenshots / GIFs / recordings
documenting the change.
- [ ] For API changes, updated relevant public types.
- [x] Ensured that CI passes
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments