Commit 942e441
fix(ios): gate index>=4 appear-select on >5-tab overflow (#526)
* fix(ios): gate index>=4 appear-select on >5-tab overflow
TabAppearModifier force-selected any tab with index >= 4 on appear to sync
selection for tabs under the system More tab. That overflow only exists with
more than 5 visible tabs, so on a 5-tab bar the 5th tab (index 4) hijacked the
selection whenever its scene re-appeared (e.g. when the tab bar is re-shown
after .hideTabBar), causing a phantom tab switch that JS can't correct.
Gate the force-select on filteredItems.count > 5. Fixes #525.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: add changeset
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Thiago Brezinski <thiagobrez@gmail.com>1 parent 412e9ca commit 942e441
2 files changed
Lines changed: 11 additions & 1 deletion
File tree
- .changeset
- packages/react-native-bottom-tabs/ios
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments