Initial commit

Generated by create-expo-app 3.3.0.
This commit is contained in:
Late Night Defender 2025-04-15 16:40:43 +07:00
commit 84c0d8ecd0
38 changed files with 15429 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';
}