import React from 'react'; import { StyleSheet, Text } from 'react-native'; import { Bold as BoldProps } from '@rocket.chat/message-parser'; import sharedStyles from '../../../views/Styles'; import Strike from './Strike'; import Italic from './Italic'; import Plain from './Plain'; import Link from './Link'; interface IBoldProps { value: BoldProps['value']; } const styles = StyleSheet.create({ text: { ...sharedStyles.textBold } }); const Bold = ({ value }: IBoldProps) => ( {value.map(block => { switch (block.type) { case 'LINK': return ; case 'PLAIN_TEXT': return ; case 'STRIKE': return ; case 'ITALIC': return ; default: return null; } })} ); export default Bold;