Cyberusgate app mobile

This commit is contained in:
Guillaume-Sanchez
2026-06-29 23:44:04 +02:00
parent 47dd7f4c4d
commit 27f53835c2
38 changed files with 13902 additions and 0 deletions
@@ -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';
}