Rework web shell ui
This commit is contained in:
parent
9bfffadd88
commit
c5f28376c8
5 changed files with 192 additions and 107 deletions
6
src/lib/hooks/useColorSchemeStyle.ts
Normal file
6
src/lib/hooks/useColorSchemeStyle.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import {useColorScheme} from 'react-native'
|
||||
|
||||
export function useColorSchemeStyle(lightStyle: any, darkStyle: any) {
|
||||
const colorScheme = useColorScheme()
|
||||
return colorScheme === 'dark' ? darkStyle : lightStyle
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue