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/Colors.js | 14 ++++++++++++++ mobile/constants/Layout.js | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 mobile/constants/Colors.js create mode 100644 mobile/constants/Layout.js (limited to 'mobile/constants') diff --git a/mobile/constants/Colors.js b/mobile/constants/Colors.js new file mode 100644 index 0000000..d8bd415 --- /dev/null +++ b/mobile/constants/Colors.js @@ -0,0 +1,14 @@ +const tintColor = '#2f95dc'; + +export default { + tintColor, + tabIconDefault: '#ccc', + tabIconSelected: tintColor, + tabBar: '#fefefe', + errorBackground: 'red', + errorText: '#fff', + warningBackground: '#EAEB5E', + warningText: '#666804', + noticeBackground: tintColor, + noticeText: '#fff', +}; 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