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
refactor(Tabs, iOS): extract RNSTabBarControllerDelegate into a formal protocol (#3876)
## Description
Turns the informal `RNSTabBarControllerDelegate` category on
`RNSTabsHostComponentView` into a proper `@protocol` defined in
`RNSTabBarController.h`. This is a step toward fully decoupling
`RNSTabBarController` from `RNSTabsHostComponentView` — a separate
delegate property will follow once appearance configuration is also
decoupled.
## Changes
- Defined `@protocol RNSTabBarControllerDelegate <NSObject>` in
`RNSTabBarController.h` with the 4 existing callback methods
- Made `RNSTabsHostComponentView` conform to the new protocol
- Removed the `RNSTabsHostComponentView (RNSTabBarControllerDelegate)`
category from the header
- Broke circular import chain (`RNSTabBarController.h` →
`RNSTabBarAppearanceCoordinator.h` → `RNSTabsHostComponentView.h`) by
downgrading the appearance coordinator's import to a forward declaration
## Test plan
Build FabricExample iOS app — this is a purely structural refactor with
no behavioral changes.
## Checklist
- [ ] Included code example that can be used to test this change.
- [ ] For visual changes, included screenshots / GIFs / recordings
documenting the change.
- [ ] For API changes, updated relevant public types.
- [ ] Ensured that CI passes
0 commit comments