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
{{ message }}
Repository navigation
Commit 195ec5e
Browse filesBrowse the repository at this point in the historyBrowse files
Update RNTester's tab content insets after the tab bar is laid out
RNTester's iOS tabs computed their content insets only when the selected
tab's safe area changed, from the tab bar's frame at that moment. The
safe area can change before the tab bar controller's layout pass moves
the bar, so the insets described the bar's previous position. After an
unfolded iPhone Duo turned to portrait, where its side tab bar moves to
the bottom, the bottom inset stayed 0 and the list ran under the bar,
where taps switch tabs.
Also compute the insets after each layout pass of the tab bar
controller, which a `UITabBarController` subclass reports from
`viewDidLayoutSubviews`, and read the safe area at that time instead of
taking it from the callback.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
0 commit comments