2021-10-28 17:48:53 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { Text } from 'react-native';
|
|
|
|
import { Plain as PlainProps } from '@rocket.chat/message-parser';
|
|
|
|
|
|
|
|
import styles from '../styles';
|
|
|
|
|
|
|
|
interface IPlainProps {
|
|
|
|
value: PlainProps['value'];
|
|
|
|
}
|
|
|
|
|
2022-11-07 16:42:42 +00:00
|
|
|
const Plain = ({ value }: IPlainProps) => (
|
|
|
|
<Text accessibilityLabel={value} style={styles.plainText}>
|
|
|
|
{value}
|
|
|
|
</Text>
|
|
|
|
);
|
2021-10-28 17:48:53 +00:00
|
|
|
|
|
|
|
export default Plain;
|