Skip to content

Commit

Permalink
Make constants accessible through funcs
Browse files Browse the repository at this point in the history
Each constant is not accessible through a function. This should make autocomplete within IDE's much easier
  • Loading branch information
Sunhat committed Feb 25, 2019
1 parent be42fd0 commit 58f2b85
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 58f2b85

Please sign in to comment.