Created a new Expo app
This commit is contained in:
12
constants/Layout.ts
Normal file
12
constants/Layout.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user