Initial commit

Generated by create-expo-app 3.4.2.
This commit is contained in:
richarjiang
2025-07-22 09:19:25 +08:00
commit ebbbabab6c
38 changed files with 13741 additions and 0 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';
}