Initial commit

Generated by create-expo-app 3.5.1.
This commit is contained in:
2025-08-16 19:40:32 +05:00
commit 0072a1ed2a
27 changed files with 11579 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import React from 'react';
// `useEffect` is not invoked during server rendering, meaning
// we can use this to determine if we're on the server or not.
export function useClientOnlyValue<S, C>(server: S, client: C): S | C {
const [value, setValue] = React.useState<S | C>(server);
React.useEffect(() => {
setValue(client);
}, [client]);
return value;
}