Initial design of computer list

This commit is contained in:
Joshua Higgins
2025-04-16 22:14:31 -04:00
parent 874d7d6b86
commit c9f5c41ed3
35 changed files with 205 additions and 36 deletions

View File

@@ -0,0 +1,21 @@
import { useEffect, useState } from 'react';
import { useColorScheme as useRNColorScheme } from 'react-native';
/**
* To support static rendering, this value needs to be re-calculated on the client side for web
*/
export function useColorScheme() {
const [hasHydrated, setHasHydrated] = useState(false);
useEffect(() => {
setHasHydrated(true);
}, []);
const colorScheme = useRNColorScheme();
if (hasHydrated) {
return colorScheme;
}
return 'light';
}