Commit dbfb2f4
chore(ios): remove old architecture code (#4130)
* chore(ios): remove old architecture code
Remove React Native old architecture (Paper/Bridge) code from iOS,
keeping only new architecture (Fabric/TurboModules) code.
Changes:
- Delete all *ViewManager.m and *ViewManager.swift files (old arch view managers)
- Remove #ifdef RCT_NEW_ARCH_ENABLED guards from ComponentView files
- Simplify Module.h files to only conform to TurboModule protocols
- Remove old arch conditionals from Module.mm files
- Update RNMBXViewResolver to remove old arch code paths
- Remove unused RCTViewManager imports from Bridge/RNMBX.h and Swift.pre.h
- Remove guards from RNMBXFabricPropConvert.mm and RNMBXFollyConvert.h
This is a follow-up to the Android old architecture removal (#4128)
and continues the 10.3.0 cleanup work (#4118).
* fix(ios): add __cplusplus guard to ComponentView.h files
The umbrella header is compiled as Objective-C (not Objective-C++),
which causes errors when ComponentView.h files import Fabric headers
that transitively include C++ code like <atomic>.
Use #ifdef __cplusplus guard instead of RCT_NEW_ARCH_ENABLED to:
- Allow content when compiled as Objective-C++ (.mm files)
- Hide content when compiled as Objective-C (umbrella header)
* fix(ios): add module wrapper methods to RNMBXMapView
Move 16 module methods from static RNMBXMapViewManager methods to instance methods on RNMBXMapView, fixing build errors after old architecture removal.
* fix(ios): restructure Module.h files for Swift compilation
Move Foundation/UIKit imports outside __cplusplus guard and provide
plain NSObject interface for non-C++ contexts (Swift).
* fix(ios): add module wrapper methods to RNMBXViewport and RNMBXShapeSource
Call methods directly on view instances instead of through Manager classes.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 89ebfd9 commit dbfb2f4
File tree
156 files changed
+497
-1680
lines changed- ios/RNMBX
- Bridge
- ShapeAnimators
- Utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
156 files changed
+497
-1680
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | | - | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
0 commit comments