From 4b862d69272a5f2d297a844fd4019076cc3512c1 Mon Sep 17 00:00:00 2001 From: ue Date: Wed, 31 Oct 2018 16:16:06 +0300 Subject: [PATCH] enhanced style a bit --- src/components/comments/view/commentsView.js | 74 ++++++++++++++++--- .../postView/view/postDisplayView.js | 2 +- 2 files changed, 63 insertions(+), 13 deletions(-) diff --git a/src/components/comments/view/commentsView.js b/src/components/comments/view/commentsView.js index fc6c17df4..566bc3295 100644 --- a/src/components/comments/view/commentsView.js +++ b/src/components/comments/view/commentsView.js @@ -1,5 +1,5 @@ -import React, { Component } from 'react'; -import { View } from 'react-native'; +import React, { Component, Fragment } from 'react'; +import { View, FlatList, Text } from 'react-native'; // Constants @@ -28,6 +28,8 @@ class CommentsView extends Component { // Component Functions _handleOnDropdownSelect = () => {}; + _keyExtractor = (item, index) => item.permlink; + render() { const { comments, @@ -41,15 +43,63 @@ class CommentsView extends Component { // commentNumber === 8 && alert('sekkiz:'); return ( - {comments + {!!comments && ( + ( + + + + + + + handleOnReplyPress && handleOnReplyPress()} + iconType="FontAwesome" + /> + + + + {commentNumber !== 8 && ( + + )} + + + )} + /> + )} + {/* {comments && comments.map((comment, i) => ( - + )} - ))} + ))} */} ); } diff --git a/src/components/postView/view/postDisplayView.js b/src/components/postView/view/postDisplayView.js index 43d40877e..e4df2dd1b 100644 --- a/src/components/postView/view/postDisplayView.js +++ b/src/components/postView/view/postDisplayView.js @@ -131,11 +131,11 @@ class PostDisplayView extends Component { {' '} {post.created} + {isPostEnd && this._getTabBar()} )} - {isPostEnd && this._getTabBar()} {post && (