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

View File

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