created promote listing

This commit is contained in:
u-e 2019-07-26 21:50:27 +03:00
parent 2b2748f9a5
commit 74f4c74f67
2 changed files with 14 additions and 12 deletions

View File

@ -95,11 +95,8 @@ class PostHeaderDescription extends PureComponent {
{isShowOwnerIndicator && (
<Icon style={styles.ownerIndicator} name="stars" iconType="MaterialIcons" />
)}
{/* {!!reblogedBy && (
// <TextWithIcon text={reblogedBy} iconType="MaterialIcons" iconName="repeat" />
<Icon style={styles.reblogedIcon} name="repeat" iconType="MaterialIcons" />
)} */}
</View>
<View style={styles.subLine}>
{!!reblogedBy && (
<TextWithIcon
@ -108,8 +105,11 @@ class PostHeaderDescription extends PureComponent {
iconName="repeat"
/>
)}
{/* {isPromoted && <Text>sponsored</Text>} */}
{isPromoted && <Text style={styles.sponsoredText}>sponsored</Text>}
{isPromoted && (
<View style={styles.sponsoredWrapper}>
<Text style={styles.sponsoredText}>sponsored</Text>
</View>
)}
</View>
</View>
);

View File

@ -7,20 +7,22 @@ export default EStyleSheet.create({
},
subLine: {
marginTop: 5,
marginHorizontal: 3,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
width: '$deviceWidth - 30',
// justifyContent: 'flex-end',
flex: 1,
},
sponsoredWrapper: {
justifyContent: 'flex-end',
marginRight: 10,
flex: 1,
},
sponsoredText: {
fontSize: 10,
color: '$primaryDarkGray',
// alignItems: 'flex-end',
// alignItems: 'flex-end',
// justifyContent: 'flex-end',
// alignItems: 'center',
textAlign: 'right',
alignItems: 'stretch',
alignSelf: 'flex-end',
},
avatar: {