side menu avatar fixed

This commit is contained in:
u-e 2018-12-04 22:23:01 +03:00
parent ae066b4a30
commit a998b30345
4 changed files with 11 additions and 11 deletions

View File

@ -54,7 +54,6 @@ class PostBody extends Component {
if (isComment) {
if (node.name === 'img') {
node.attribs.style = `max-width: ${WIDTH - 50}px; height: 100px; width: ${WIDTH - 50}`;
console.log(node);
} else if (node.name === 'iframe') {
node.attribs.style = `max-width: ${WIDTH}px; left: -20px`;
node.attribs.height = 216;

View File

@ -24,6 +24,9 @@ export default EStyleSheet.create({
},
userAvatar: {
marginLeft: '$deviceWidth / 10',
width: 64,
height: 64,
borderRadius: 64 / 2,
},
otherUserAvatar: {
marginLeft: -15,

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react';
import {
View, Text, ImageBackground, FlatList, TouchableHighlight,
View, Text, ImageBackground, FlatList, TouchableHighlight, Image,
} from 'react-native';
import { injectIntl } from 'react-intl';
import LinearGradient from 'react-native-linear-gradient';
@ -73,6 +73,8 @@ class SideMenuView extends Component {
? { uri: currentAccount.profile_image }
: DEFAULT_IMAGE;
console.log(_avatar);
console.log(menuItems);
return (
<View style={styles.container}>
<LinearGradient
@ -87,11 +89,7 @@ class SideMenuView extends Component {
>
{isLoggedIn && (
<View style={styles.headerContentView}>
<FastImage
style={styles.userAvatar}
source={_avatar}
defaultSource={DEFAULT_IMAGE}
/>
<Image style={styles.userAvatar} source={_avatar} defaultSource={DEFAULT_IMAGE} />
<View style={styles.userInfoView}>
{currentAccount.display_name && (
<Text style={styles.username}>{currentAccount.display_name}</Text>
@ -138,7 +136,7 @@ class SideMenuView extends Component {
/>
)}
{item.item.image && (
<FastImage
<Image
style={styles.otherUserAvatar}
source={item.item.image}
defaultSource={DEFAULT_IMAGE}

View File

@ -124,8 +124,8 @@ class UpvoteView extends Component {
<Icon
style={[styles.upvoteIcon]}
active={!isLoggedIn}
iconType="AntDesign"
name={isVoted && isLoggedIn ? 'upcircle' : 'upcircleo'}
iconType={isVoted && isLoggedIn && 'AntDesign'}
name={isVoted && isLoggedIn ? 'upcircle' : 'ios-arrow-dropup'}
/>
{isShowPayoutValue && (
<Text style={styles.payoutValue}>