Skip to content

fix: round zIndex value in useAnimatedTab for Fabric compatibility#7332

Merged
janicduplessis merged 1 commit intodevelopfrom
@janic/fix-animated-tab-zindex
Apr 15, 2026
Merged

fix: round zIndex value in useAnimatedTab for Fabric compatibility#7332
janicduplessis merged 1 commit intodevelopfrom
@janic/fix-animated-tab-zindex

Conversation

@janicduplessis
Copy link
Copy Markdown
Contributor

@janicduplessis janicduplessis commented Apr 10, 2026

Fixes APP-3617

What changed (plus any additional context for devs)

Extracted from the new arch migration PR #6924.

The browser tab view computes a zIndex value by multiplying scaleWeighting with constants, which can produce floating-point values. Fabric (new arch) requires zIndex to be an integer or it will crash.

What to test

Tested previously in the RN upgrade branch

  • Browser tab view renders correctly

Fabric requires integer zIndex values. The computed zIndex from
scaleWeighting multiplication can produce floats, causing issues
on the new architecture.
@linear
Copy link
Copy Markdown

linear Bot commented Apr 10, 2026

@github-actions
Copy link
Copy Markdown

πŸ§ͺ Flashlight Performance Report (AWS Device Farm)

πŸ”€ Commit: 3909eb8

πŸ“Ž View Artifacts

Metric Current Ξ” vs Baseline
Time to Interactive (TTI) 5509 ms 🟒 -57.8 ms (-1.0%)
Average FPS 56.86 βšͺ +0.1 (+0.1%)
Average RAM 396.1 MB βšͺ +1.5 MB (+0.4%)

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 3909eb8

@janicduplessis janicduplessis merged commit 6295778 into develop Apr 15, 2026
21 of 25 checks passed
@janicduplessis janicduplessis deleted the @janic/fix-animated-tab-zindex branch April 15, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants