verdnatura-chat/app/containers/markdown/MessageBody/BigEmoji.js

20 lines
450 B
JavaScript
Raw Normal View History

2021-08-12 21:05:18 +00:00
/* eslint-disable react/no-array-index-key */
import React from 'react';
2021-08-20 16:25:30 +00:00
import { View } from 'react-native';
2021-08-12 21:05:18 +00:00
import PropTypes from 'prop-types';
import Emoji from './Emoji';
const BigEmoji = ({ value }) => (
2021-08-20 16:25:30 +00:00
<View style={{ flexDirection: 'row' }}>
2021-08-12 21:12:04 +00:00
{value.map((block, index) => <Emoji key={index} emojiHandle={`:${ block.value.value }:`} isBigEmoji />)}
2021-08-20 16:25:30 +00:00
</View>
2021-08-12 21:05:18 +00:00
);
BigEmoji.propTypes = {
value: PropTypes.object
};
export default BigEmoji;