extracted summary from post body in comment reply

This commit is contained in:
Sadaqat Ali 2022-04-20 22:32:06 +05:00
parent 6ff70b2451
commit fba0db5bd7

View File

@ -16,6 +16,7 @@ import { default as ROUTES } from '../../constants/routeNames';
import get from 'lodash/get'; import get from 'lodash/get';
import { navigate } from '../../navigation/service'; import { navigate } from '../../navigation/service';
import { Portal } from 'react-native-portalize'; import { Portal } from 'react-native-portalize';
import { postBodySummary } from '@ecency/render-helper';
export interface QuickReplyModalProps { export interface QuickReplyModalProps {
fetchPost?: any, fetchPost?: any,
@ -195,7 +196,7 @@ const QuickReplyModal = ({fetchPost}: QuickReplyModalProps, ref) => {
) : ( ) : (
<View style={styles.titleContainer}> <View style={styles.titleContainer}>
<Text style={styles.titleText}> <Text style={styles.titleText}>
{selectedPost.title} {postBodySummary(selectedPost, 150, Platform.OS)}
</Text> </Text>
</View> </View>
); );