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 3941835
Browse filesBrowse the repository at this point in the historyBrowse files
fix(android): smooth rail label motion when expanding and collapsing
Labels swap between "PRs" and "Pull Requests" at the rail item's
invisible midpoint and stay transparent while sliding across their
icon. Collapsing starts on tap, so labels and the New thread button
finish before the modal rail closes, and the button's text no longer
lingers over its icon. Tab icons drop a duplicate content description.
Copy file name to clipboardExpand all lines: apps/mobile/modules/t3-native-controls/android/src/main/java/expo/modules/t3nativecontrols/T3WorkspaceNavigationModule.kt
+29-6Lines changed: 29 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -146,12 +146,14 @@ class T3WorkspaceNavigationView(
146
146
val railState = rememberWideNavigationRailState()
147
147
val scope = rememberCoroutineScope()
148
148
// Mirrors ModalWideNavigationRail's internal modalExpanded threshold, so labels and
149
-
// FABs expand on the frame the modal container starts widening, not before.
149
+
// FABs expand on the frame the modal container starts widening, not before. Closing
150
+
// starts at once so they finish collapsing before the modal's window goes away.
151
+
val railOpening = railState.targetValue ==WideNavigationRailValue.Expanded
0 commit comments