From fba0db5bd7b383d6418d0c4db18ed0767125d90f Mon Sep 17 00:00:00 2001 From: Sadaqat Ali Date: Wed, 20 Apr 2022 22:32:06 +0500 Subject: [PATCH] extracted summary from post body in comment reply --- src/components/quickReplyModal/quickReplyModalView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/quickReplyModal/quickReplyModalView.tsx b/src/components/quickReplyModal/quickReplyModalView.tsx index d7d0408e9..1c006bb38 100644 --- a/src/components/quickReplyModal/quickReplyModalView.tsx +++ b/src/components/quickReplyModal/quickReplyModalView.tsx @@ -16,6 +16,7 @@ import { default as ROUTES } from '../../constants/routeNames'; import get from 'lodash/get'; import { navigate } from '../../navigation/service'; import { Portal } from 'react-native-portalize'; +import { postBodySummary } from '@ecency/render-helper'; export interface QuickReplyModalProps { fetchPost?: any, @@ -195,7 +196,7 @@ const QuickReplyModal = ({fetchPost}: QuickReplyModalProps, ref) => { ) : ( - {selectedPost.title} + {postBodySummary(selectedPost, 150, Platform.OS)} );