Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): Android fold sidebar drops the nav rail and aligns every row #21049

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromfix/mobile-fold-rail-and-row-indentopened View on GitHub

Showing 12 changed files with 33 additions and 59 deletions (loading 10).

x
0 of 12 viewed, 12 left
24 additions and 59 deletionsapps/mobile/modules/t3-native-controls/android/src/main/java/expo/modules/t3nativecontrols/T3WorkspaceNavigationModule.ktModified
View file
@@ -3,16 +3,12 @@
import android.content.Context
import android.view.ViewGroup
import androidx.compose.foundation.layout.WindowInsets
-import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.NavigationBarItemDefaults
-import androidx.compose.material3.NavigationRail
-import androidx.compose.material3.NavigationRailItem
-import androidx.compose.material3.NavigationRailItemDefaults
import androidx.compose.material3.Text
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
@@ -39,7 +35,6 @@
Prop("selectedTab") { view: T3WorkspaceNavigationView, value: String ->
view.selectedTab = value
- Prop("rail") { view: T3WorkspaceNavigationView, value: Boolean -> view.rail = value }
Prop("dark") { view: T3WorkspaceNavigationView, value: Boolean -> view.dark = value }
Prop("textScale") { view: T3WorkspaceNavigationView, value: Float -> view.textScale = value }
Prop("containerColor") { view: T3WorkspaceNavigationView, value: Int ->
@@ -59,7 +54,7 @@