import React from 'react'; import { StyleSheet, Text } from 'react-native'; import { Italic as ItalicProps } from '@rocket.chat/message-parser'; import Strike from './Strike'; import Bold from './Bold'; import Plain from './Plain'; import Link from './Link'; interface IItalicProps { value: ItalicProps['value']; } const styles = StyleSheet.create({ text: { fontStyle: 'italic' } }); const Italic = ({ value }: IItalicProps) => ( {value.map(block => { switch (block.type) { case 'LINK': return ; case 'PLAIN_TEXT': return ; case 'STRIKE': return ; case 'BOLD': return ; case 'MENTION_CHANNEL': return ; default: return null; } })} ); export default Italic;