/* eslint-disable react/no-array-index-key */ import React from 'react'; import { StyleSheet, Text } from 'react-native'; import PropTypes from 'prop-types'; import Plain from './Plain'; import Strike from './Strike'; import Bold from './Bold'; const styles = StyleSheet.create({ text: { fontStyle: 'italic' } }); const Italic = ({ value }) => ( {value.map((block, index) => { switch (block.type) { case 'PLAIN_TEXT': return ; case 'STRIKE': return ; case 'BOLD': return ; default: return null; } })} ); Italic.propTypes = { value: PropTypes.string }; export default Italic;