File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,7 +167,10 @@ export default function RootLayout() {
167167 options = { {
168168 presentation : 'formSheet' ,
169169 sheetAllowedDetents : 'fitToContents' ,
170- headerTransparent : false ,
170+ headerStyle : {
171+ backgroundColor : isDark ? '#1C1C1E' : '#F2F2F7' ,
172+ } ,
173+ headerTintColor : isDark ? '#FFF' : '#007AFF' ,
171174 } }
172175 />
173176 < Stack . Screen
@@ -191,7 +194,11 @@ export default function RootLayout() {
191194 name = "web-view"
192195 options = { {
193196 presentation : 'modal' ,
194- headerTransparent : false ,
197+ headerStyle : {
198+ backgroundColor : isDark ? '#1C1C1E' : '#F2F2F7' ,
199+ } ,
200+ headerTintColor : isDark ? '#FFF' : '#007AFF' ,
201+ headerTitleStyle : { color : isDark ? '#FFF' : '#000' } ,
195202 } }
196203 />
197204 < Stack . Screen
Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ import { View } from 'react-native';
33import { Stack , router , useLocalSearchParams } from 'expo-router' ;
44
55import Text from '../../components/Text' ;
6+ import useTheme from '../../hooks/useTheme' ;
67import UserScreen from '../../screens/UserScreen' ;
78
89export default function User ( ) {
910 const { id } = useLocalSearchParams ( ) ;
11+ const { isDark } = useTheme ( ) ;
1012
1113 return (
1214 < >
@@ -18,7 +20,11 @@ export default function User() {
1820 style = { { flex : 1 , alignItems : 'flex-start' , marginRight : 60 } }
1921 >
2022 < Text
21- style = { { fontSize : 17 , fontWeight : '600' } }
23+ style = { {
24+ fontSize : 17 ,
25+ fontWeight : '600' ,
26+ color : isDark ? '#FFF' : '#000' ,
27+ } }
2228 numberOfLines = { 1 }
2329 >
2430 { id }
You can’t perform that action at this time.
0 commit comments