From 33ad063f257058d628060bf7bf31a17e1e87c876 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Fri, 18 Jan 2019 12:01:05 +0300 Subject: [PATCH] Fixed #455 --- src/components/sideMenu/view/sideMenuStyles.js | 3 +++ src/components/sideMenu/view/sideMenuView.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/components/sideMenu/view/sideMenuStyles.js b/src/components/sideMenu/view/sideMenuStyles.js index 3dddead85..0292681ee 100644 --- a/src/components/sideMenu/view/sideMenuStyles.js +++ b/src/components/sideMenu/view/sideMenuStyles.js @@ -83,4 +83,7 @@ export default EStyleSheet.create({ flexDirection: 'row', marginLeft: 55, }, + versionText: { + textAlign: 'center', + }, }); diff --git a/src/components/sideMenu/view/sideMenuView.js b/src/components/sideMenu/view/sideMenuView.js index f1efd3229..4992d3574 100644 --- a/src/components/sideMenu/view/sideMenuView.js +++ b/src/components/sideMenu/view/sideMenuView.js @@ -13,6 +13,7 @@ import { UserAvatar } from '../../userAvatar'; // Constants import { default as MENU } from '../../../constants/sideMenuItems'; +import PackageJson from '../../../../package.json'; // Styles import styles from './sideMenuStyles'; @@ -85,6 +86,7 @@ class SideMenuView extends Component { currentAccount, isLoggedIn, intl, handleLogout, } = this.props; const { menuItems, isAddAccountIconActive } = this.state; + const { version } = PackageJson; return ( @@ -163,6 +165,7 @@ class SideMenuView extends Component { )} /> + {`v ${version}`} (this.ActionSheet = o)} options={[intl.formatMessage({ id: 'side_menu.logout' }), intl.formatMessage({ id: 'side_menu.cancel' })]}