import React from 'react'; import FastImage from 'react-native-fast-image'; import { ICustomEmoji } from '../../definitions/IEmoji'; const CustomEmoji = React.memo( ({ baseUrl, emoji, style }: ICustomEmoji) => ( ), (prevProps, nextProps) => { const prevEmoji = prevProps.emoji.content || prevProps.emoji.name; const nextEmoji = nextProps.emoji.content || nextProps.emoji.name; return prevEmoji === nextEmoji; } ); export default CustomEmoji;