import React from 'react'; import { Text } from 'react-native'; import PropTypes from 'prop-types'; import Link from './Link'; import Plain from './Plain'; import Bold from './Bold'; import Strike from './Strike'; import Italic from './Italic'; import Emoji from './Emoji'; import Mention from './Mention'; import InlineCode from './InlineCode'; const Inline = ({ value, mentions, navToRoomInfo, style }) => ( {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, mentions: PropTypes.array, navToRoomInfo: PropTypes.func, style: PropTypes.oneOfType([PropTypes.array, PropTypes.object]) }; export default Inline;