import React from 'react'; import { StyleSheet, Text } from 'react-native'; import { Strike as StrikeProps } from '@rocket.chat/message-parser'; import Bold from './Bold'; import Italic from './Italic'; import Plain from './Plain'; import Link from './Link'; interface IStrikeProps { value: StrikeProps['value']; } const styles = StyleSheet.create({ text: { textDecorationLine: 'line-through' } }); const Strike = ({ value }: IStrikeProps): JSX.Element => ( {value.map(block => { switch (block.type) { case 'LINK': return ; case 'PLAIN_TEXT': return ; case 'BOLD': return ; case 'ITALIC': return ; default: return null; } })} ); export default Strike;