@@ -3,21 +3,21 @@ import { DynamicColorIOS, Platform } from "react-native";
33
44export default function AuthTabLayout ( ) {
55 // Dynamic colors for liquid glass effect on iOS
6- const dynamicTextColor = Platform . select ( {
7- ios : DynamicColorIOS ( {
8- dark : "white" ,
9- light : "black " ,
10- } ) ,
11- default : "white" ,
12- } ) ;
6+ const dynamicTextColor =
7+ Platform . OS === "ios"
8+ ? DynamicColorIOS ( {
9+ dark : "white " ,
10+ light : "black" ,
11+ } )
12+ : "white" ;
1313
14- const dynamicTintColor = Platform . select ( {
15- ios : DynamicColorIOS ( {
16- dark : "#f97316" , // orange-500
17- light : "#ea580c " , // orange-600
18- } ) ,
19- default : "#f97316" ,
20- } ) ;
14+ const dynamicTintColor =
15+ Platform . OS === "ios"
16+ ? DynamicColorIOS ( {
17+ dark : "#f97316 " , // orange-500
18+ light : "#ea580c" , // orange-600
19+ } )
20+ : "#f97316" ;
2121
2222 return (
2323 < NativeTabs
@@ -36,15 +36,6 @@ export default function AuthTabLayout() {
3636 />
3737 </ NativeTabs . Trigger >
3838
39- { /* Chat - New Chat Tab with + icon */ }
40- < NativeTabs . Trigger name = "chat" >
41- < Label > Chat</ Label >
42- < Icon
43- sf = { { default : "plus.circle" , selected : "plus.circle.fill" } }
44- drawable = "ic_menu_add"
45- />
46- </ NativeTabs . Trigger >
47-
4839 { /* Settings/Profile Tab */ }
4940 < NativeTabs . Trigger name = "settings" >
5041 < Label > Profile</ Label >
@@ -53,6 +44,15 @@ export default function AuthTabLayout() {
5344 drawable = "ic_menu_preferences"
5445 />
5546 </ NativeTabs . Trigger >
47+
48+ { /* Chat - Separate floating button (iOS search role style) */ }
49+ < NativeTabs . Trigger name = "chat" role = "search" >
50+ < Label hidden />
51+ < Icon
52+ sf = { { default : "plus" , selected : "plus" } }
53+ drawable = "ic_menu_add"
54+ />
55+ </ NativeTabs . Trigger >
5656 </ NativeTabs >
5757 ) ;
5858}
0 commit comments