import React from 'react'; import { Text } from 'react-native'; import PropTypes from 'prop-types'; import Link from './Link'; import Plain from './Plain'; import Code from './Code'; import Bold from './Bold'; import Strike from './Strike'; import Italic from './Italic'; import Emoji from './Emoji'; const Inline = ({ value }) => ( {value.map((block) => { switch (block.type) { case 'PLAIN_TEXT': return ; case 'BOLD': return ; case 'STRIKE': return ; case 'ITALIC': return ; case 'LINK': // eslint-disable-next-line jsx-a11y/anchor-is-valid return ; // case 'MENTION_USER': // return ; case 'EMOJI': return ; // case 'MENTION_CHANNEL': // // case 'COLOR': // return ; case 'INLINE_CODE': return ; default: return null; } })} ); Inline.propTypes = { value: PropTypes.object }; export default Inline;