Skip to content
Merged
10 changes: 7 additions & 3 deletions app/containers/markdown/components/emoji/Emoji.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext } from 'react';
import { Text, useWindowDimensions } from 'react-native';
import { type Emoji as EmojiProps } from '@rocket.chat/message-parser';
import { Text, View, useWindowDimensions } from 'react-native';
import { Emoji as EmojiProps } from '@rocket.chat/message-parser';

Check failure on line 3 in app/containers/markdown/components/emoji/Emoji.tsx

View workflow job for this annotation

GitHub Actions / ESLint and Test / run-eslint-and-test

All imports in the declaration are only used as types. Use `import type`
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

import Plain from '../Plain';
import useShortnameToUnicode from '../../../../lib/hooks/useShortnameToUnicode';
Expand Down Expand Up @@ -68,7 +68,11 @@
};

if (emoji) {
return <CustomEmoji style={[isBigEmoji ? customEmojiBigSize : customEmojiSize, style]} emoji={emoji} />;
return (
<View style={[{ transform: [{ translateY: isBigEmoji || isAvatar ? 0 : 3 }] }]}>
<CustomEmoji style={[isBigEmoji ? customEmojiBigSize : customEmojiSize, style]} emoji={emoji} />;
</View>
);
}
Comment thread
Rohit3523 marked this conversation as resolved.
Resolved

return (
Expand Down
Loading