This commit is contained in:
zimplexing
2025-06-27 16:16:14 +08:00
commit 7e6095d2bb
111 changed files with 20915 additions and 0 deletions

6
hooks/useScale.ts Normal file
View File

@@ -0,0 +1,6 @@
import {Platform, useWindowDimensions} from 'react-native';
export function useScale(): number {
const {width} = useWindowDimensions();
return Platform.isTV ? width / 1000 : 1;
}