mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 20:31:37 +03:00
created promote listing
This commit is contained in:
parent
2b2748f9a5
commit
74f4c74f67
@ -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>
|
||||
);
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user