GT2/Ejected/constants/Layout.ts

13 lines
229 B
TypeScript
Raw Normal View History

2021-08-19 00:49:26 +00:00
import { Dimensions } from 'react-native';
const width = Dimensions.get('window').width;
const height = Dimensions.get('window').height;
export default {
window: {
width,
height,
},
isSmallDevice: width < 375,
};