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
fix(iOS): header subviews layout on tab change (#2385)
## Description
This PR intents to fix header subviews incorrect layout when changing
tabs.
The previous solution did layout the subviews correctly in the test
cases, but triggered an undesirable `layoutIfNeeded` when going back
from tab to tab. In such case the navigation layout happened without
updating subview's layout metrics.
Moving the logic to subview resolves the issue as the re-layout is now
triggered only when subview's layout metrics are updated.
Related fixes from the past:
#2316,
#2248
## Changes
- combined `Test2231.tsx` with `Test432.tsx` to create comprehensive
test case
- moved re-layout logic to subview
## Screenshots / GIFs
### Before

### After

## Test code and steps to reproduce
- Use `Test432.tsx` repro
## Checklist
- [x] Included code example that can be used to test this change
- [x] Ensured that CI passes
(cherry picked from commit 91d89c4)
0 commit comments