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