rough implementation for testing

This commit is contained in:
Nouman Tahir 2021-09-03 12:31:17 +05:00
parent 2a170f5dbd
commit e42d71e702
2 changed files with 22 additions and 12 deletions

View File

@ -109,23 +109,29 @@ const CommentView = ({
date={getTimeFromNow(comment.created)}
name={comment.author}
reputation={comment.author_reputation}
size={avatarSize || 40}
size={avatarSize || 36}
currentAccountUsername={currentAccountUsername}
isShowOwnerIndicator={mainAuthor === comment.author}
isHideImage={isHideImage}
inlineTime={true}
customStyle={{alignItems:'flex-start'}}
customContentComponent={(
<View style={[{ marginLeft: 2, marginTop: -10 }]}>
<CommentBody
commentDepth={comment.depth}
reputation={comment.author_reputation}
handleOnUserPress={handleOnUserPress}
handleOnLongPress={handleOnLongPress}
body={comment.body}
created={comment.created}
key={`key-${comment.permlink}`}
textSelectable={true}
/>
</View>
)}
/>
<View style={[{ marginLeft: 34 }, styles.bodyWrapper]}>
<CommentBody
commentDepth={comment.depth}
reputation={comment.author_reputation}
handleOnUserPress={handleOnUserPress}
handleOnLongPress={handleOnLongPress}
body={comment.body}
created={comment.created}
key={`key-${comment.permlink}`}
textSelectable={true}
/>
<View style={[{ marginLeft: 72, marginTop: -4 }]}>
<View style={styles.footerWrapper}>
{isLoggedIn && (
<Fragment>

View File

@ -87,6 +87,7 @@ class PostHeaderDescription extends PureComponent {
intl,
inlineTime,
customStyle,
customContentComponent,
} = this.props;
return (
@ -106,6 +107,7 @@ class PostHeaderDescription extends PureComponent {
/>
)}
</TouchableOpacity>
<View style={styles.leftContainer}>
<View style={styles.primaryDetails}>
<TouchableOpacity
@ -126,6 +128,8 @@ class PostHeaderDescription extends PureComponent {
)}
</View>
{customContentComponent}
<View style={styles.secondaryDetails}>
{content && (
<TouchableOpacity onPress={() => this._handleOnTagPress(content)}>