From 74f4c74f672ef75ee20d4d5789f72a141c83edd4 Mon Sep 17 00:00:00 2001 From: u-e Date: Fri, 26 Jul 2019 21:50:27 +0300 Subject: [PATCH] created promote listing --- .../view/postHeaderDescription.js | 12 ++++++------ .../view/postHeaderDescriptionStyles.js | 14 ++++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/components/postElements/headerDescription/view/postHeaderDescription.js b/src/components/postElements/headerDescription/view/postHeaderDescription.js index 8838dff11..d683d94bc 100644 --- a/src/components/postElements/headerDescription/view/postHeaderDescription.js +++ b/src/components/postElements/headerDescription/view/postHeaderDescription.js @@ -95,11 +95,8 @@ class PostHeaderDescription extends PureComponent { {isShowOwnerIndicator && ( )} - {/* {!!reblogedBy && ( - // - - )} */} + {!!reblogedBy && ( )} - {/* {isPromoted && sponsored} */} - {isPromoted && sponsored} + {isPromoted && ( + + sponsored + + )} ); diff --git a/src/components/postElements/headerDescription/view/postHeaderDescriptionStyles.js b/src/components/postElements/headerDescription/view/postHeaderDescriptionStyles.js index e68a1c6ac..fb200980d 100644 --- a/src/components/postElements/headerDescription/view/postHeaderDescriptionStyles.js +++ b/src/components/postElements/headerDescription/view/postHeaderDescriptionStyles.js @@ -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: {