import React from 'react'; import FastImage from 'react-native-fast-image'; import PropTypes from 'prop-types'; const CustomEmoji = React.memo(({ baseUrl, emoji, style }) => ( ), (prevProps, nextProps) => { const prevEmoji = prevProps.emoji.content || prevProps.emoji.name; const nextEmoji = nextProps.emoji.content || nextProps.emoji.name; return prevEmoji === nextEmoji; }); CustomEmoji.propTypes = { baseUrl: PropTypes.string.isRequired, emoji: PropTypes.object.isRequired, style: PropTypes.any }; export default CustomEmoji;