Код: Выделить всё
const renderCommentItem = ({ item }) => (
{item.author_username}
handleUserPress(item.mentioned_username)}>
@{item.mentioned_username ? item.mentioned_username : creation_user}
{item.message}
{setReplyingTo(item.id); setMSG(`@${item.author_username} `); inputRef.current.focus();}}>
Reply
{item.author_username == user.username && (
confirmDeleteComment(item.id)}>
Delete
)}
{(item.replies.length > 0) && (
toggleReplies(item.id)} style={{alignSelf: 'center'}}>
{showReplies[item.id] ? "Hide Replies" : "View Replies"}
)}
{showReplies[item.id] && (
item.id}
renderItem={({ item }) => renderCommentItem({item})}
/>
)}
);
< /code>
Но соответствующая строка здесь: < /p>
Но я хочу, чтобы «Ответить на 2 -й ответ». быть выровненным с «ответным тестом» и «2 -й ответ».
Подробнее здесь: https://stackoverflow.com/questions/794 ... eact-nativ