From 829998568f4e8a44971a9fe7e46a76ec9316cc81 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Mon, 18 Feb 2019 16:09:52 -0700 Subject: fixed folder structure --- mobile/constants/Layout.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 mobile/constants/Layout.js (limited to 'mobile/constants/Layout.js') diff --git a/mobile/constants/Layout.js b/mobile/constants/Layout.js new file mode 100644 index 0000000..1a15a93 --- /dev/null +++ b/mobile/constants/Layout.js @@ -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, +}; -- cgit v1.2.3