From 58f2b85604c59880d50dff79011022ed4f2bc248 Mon Sep 17 00:00:00 2001 From: Marcus Coleman Date: Mon, 25 Feb 2019 08:32:31 +0000 Subject: [PATCH] Make constants accessible through funcs Each constant is not accessible through a function. This should make autocomplete within IDE's much easier --- index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/index.js b/index.js index 7a3113f..d2c065f 100644 --- a/index.js +++ b/index.js @@ -17,6 +17,24 @@ if (Platform.OS === 'android') { } catch (e) { console.error(e); } + }, + getRealWidthHeight() { + return this.get('REAL_WINDOW_HEIGHT'); + }, + getRealWindowWidth() { + return this.get('REAL_WIDTH_WIDTH'); + }, + getStatusBarHeight() { + return this.get('STATUS_BAR_HEIGHT'); + }, + getSoftMenuBarHeight() { + return this.get('SOFT_MENU_BAR_HEIGHT'); + }, + getSmartBarHeight() { + return this.get('SMART_BAR_HEIGHT'); + }, + isSoftMenuBarEnabled() { + return this.get('SOFT_MENU_BAR_ENABLED'); } }; } else {