mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 20:01:56 +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 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>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user