mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +03:00
extracted summary from post body in comment reply
This commit is contained in:
parent
6ff70b2451
commit
fba0db5bd7
@ -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) => {
|
||||
) : (
|
||||
<View style={styles.titleContainer}>
|
||||
<Text style={styles.titleText}>
|
||||
{selectedPost.title}
|
||||
{postBodySummary(selectedPost, 150, Platform.OS)}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user