import React from 'react'; import FastImage from '@rocket.chat/react-native-fast-image'; import {TEmoji} from "./index"; interface ICustomEmoji { baseUrl: string, emoji: TEmoji, style: any } 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;