From 023e490ab21a5af5a6e482d36e6d7972f623c256 Mon Sep 17 00:00:00 2001 From: u-e Date: Thu, 6 Dec 2018 15:22:14 +0300 Subject: [PATCH] wip one side --- index.js | 1 + src/components/sideMenu/view/sideMenuStyles.js | 14 +++++++------- src/components/sideMenu/view/sideMenuView.js | 10 +++++----- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index 85fa049fe..5b515ac23 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ import 'core-js'; import { AppRegistry } from 'react-native'; import { name as appName } from './app.json'; +import 'intl'; AppRegistry.registerComponent(appName, () => require('./App').default); diff --git a/src/components/sideMenu/view/sideMenuStyles.js b/src/components/sideMenu/view/sideMenuStyles.js index 2cfa19309..5c96baaf0 100644 --- a/src/components/sideMenu/view/sideMenuStyles.js +++ b/src/components/sideMenu/view/sideMenuStyles.js @@ -13,9 +13,9 @@ export default EStyleSheet.create({ justifyContent: 'center', alignItems: 'center', }, - headerContentView: { + headerContentWrapper: { alignItems: 'center', - flex: 1, + height: 50, flexDirection: 'row', }, contentView: { @@ -38,7 +38,7 @@ export default EStyleSheet.create({ borderColor: '$borderColor', }, userInfoView: { - alignSelf: 'center', + alignSelf: 'flex-end', marginLeft: 15, }, username: { @@ -74,18 +74,18 @@ export default EStyleSheet.create({ color: '$white', backgroundColor: 'transparent', }, - addAccountIconView: { + addAccountWrapper: { alignSelf: 'flex-end', justifyContent: 'center', flex: 1, flexDirection: 'row', }, addAccountIcon: { - padding: 10, + // padding: 10, }, itemWrapper: { flexDirection: 'row', - marginVertical: 20, - marginLeft: 48, + marginVertical: 10, + marginLeft: '$deviceWidth / 20', }, }); diff --git a/src/components/sideMenu/view/sideMenuView.js b/src/components/sideMenu/view/sideMenuView.js index 986450971..6a2117ef2 100644 --- a/src/components/sideMenu/view/sideMenuView.js +++ b/src/components/sideMenu/view/sideMenuView.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import { - View, Text, ImageBackground, FlatList, TouchableHighlight, Image, + View, Text, ImageBackground, FlatList, TouchableOpacity, Image, } from 'react-native'; import { injectIntl } from 'react-intl'; import LinearGradient from 'react-native-linear-gradient'; @@ -83,7 +83,7 @@ class SideMenuView extends Component { style={{ width: '100%', height: '100%', flexDirection: 'row' }} > {isLoggedIn && ( - + {currentAccount.display_name && ( @@ -91,7 +91,7 @@ class SideMenuView extends Component { )} {`@${currentAccount.name}`} - + {/* TODO: delete android name */} ( - { if (item.item.route) { @@ -145,7 +145,7 @@ class SideMenuView extends Component { : intl.formatMessage({ id: `side_menu.${item.item.id}` })} - + )} />