Merge pull request #96 from esteemapp/small-bugfix

Small bugfix
This commit is contained in:
Feruz M 2018-11-09 22:07:34 +02:00 committed by GitHub
commit b3e171d082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 7 deletions

View File

@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
@ -29,6 +39,11 @@
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {

View File

@ -60,6 +60,8 @@ class HeaderView extends Component {
isReverse,
currentAccount,
} = this.props;
const _name = this._getNameOfUser();
const _reputation = getReputation(currentAccount.reputation);
return (
<SafeAreaView style={[styles.container, isReverse && styles.containerReverse]}>
@ -88,11 +90,11 @@ class HeaderView extends Component {
</TouchableOpacity>
{currentAccount && currentAccount.name ? (
<View style={styles.titleWrapper}>
<Text style={styles.title}>{this._getNameOfUser()}</Text>
{_name && <Text style={styles.title}>{_name}</Text>}
<Text style={styles.subTitle}>
@
{currentAccount.name}
{`(${getReputation(currentAccount.reputation)})`}
{`(${_reputation})`}
</Text>
</View>
) : (

View File

@ -128,7 +128,7 @@ class ProfileSummaryView extends Component {
color="#c1c5c7"
/>
{isFollowLoading ? (
<ActivityIndicator style={styles.insetIconStyle} />
<ActivityIndicator style={[styles.insetIconStyle, {width: 30}]} />
) : (
<IconButton
backgroundColor="transparent"

View File

@ -30,7 +30,7 @@ class MessagesScreen extends Component {
<Fragment>
<Header />
<NoPost
style={{ marginTop: 118 }}
style={styles.container}
imageStyle={styles.image}
source={MESSAGES_IMAGE}
defaultText="Messages feature is coming soon!"

View File

@ -2,11 +2,9 @@ import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({
container: {
// flexDirection: 'center',
// width: 50,
justifyContent: 'center',
alignContent: 'center',
alignItems: 'center',
flex: 1,
},
image: {
width: 193,