From 9c007c11b7aaca6afd593578268a0d9bad7d7116 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 21 Sep 2018 14:24:15 -0300 Subject: [PATCH] [NEW] Show app version (#454) --- app/containers/Sidebar.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/containers/Sidebar.js b/app/containers/Sidebar.js index 8a1bccb7..d079a0b5 100644 --- a/app/containers/Sidebar.js +++ b/app/containers/Sidebar.js @@ -18,6 +18,7 @@ import log from '../utils/log'; import I18n from '../i18n'; import { NavigationActions } from '../Navigation'; import scrollPersistTaps from '../utils/scrollPersistTaps'; +import DeviceInfo from '../utils/deviceInfo'; const styles = StyleSheet.create({ container: { @@ -73,6 +74,13 @@ const styles = StyleSheet.create({ }, currentServerText: { fontWeight: 'bold' + }, + version: { + marginHorizontal: 5, + marginBottom: 5, + fontWeight: '600', + color: '#292E35', + fontSize: 13 } }); const keyExtractor = item => item.id; @@ -365,6 +373,9 @@ export default class Sidebar extends Component { {!this.state.showServers ? this.renderNavigation() : null} {this.state.showServers ? this.renderServers() : null} + + {DeviceInfo.getReadableVersion()} + ); }