Initial commit

Generated by create-expo-app 3.5.3.
This commit is contained in:
Tran Anh Tuan
2025-10-29 09:38:54 +07:00
commit 45dc7d1ff8
38 changed files with 14426 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';
}