diff options
| author | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-17 23:01:42 -0700 |
|---|---|---|
| committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-17 23:01:42 -0700 |
| commit | 5d5cb7830061661a83d9ee30a24727104212f789 (patch) | |
| tree | 7f60bbe262b139e220074d9608d1a9442be312d4 /src/components/moments/MomentPost.tsx | |
| parent | f3134bbe9b8bc84a906ca1dac46959b360dd243f (diff) | |
Add comment count component
Diffstat (limited to 'src/components/moments/MomentPost.tsx')
| -rw-r--r-- | src/components/moments/MomentPost.tsx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index d87028e3..60cb16fa 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -83,13 +83,14 @@ const MomentPost: React.FC<MomentPostProps> = ({ moment={moment} tags={tags} /> - <MomentPostContent - style={styles.postContent} - moment={moment} - screenType={screenType} - momentTags={tags} - index={index} - /> + <View + style={{ + position: 'absolute', + right: '2%', + bottom: SCREEN_HEIGHT * 0.12, + }}> + <CommentsCount moment={moment} screenType={screenType} /> + </View> </> ); }; |
