Skip to content

Commit 8533bcb

Browse files
committed
Align custom emoji in center
1 parent 53e26da commit 8533bcb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • app/containers/markdown/components/emoji

app/containers/markdown/components/emoji/Emoji.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useContext } from 'react';
2-
import { Text, useWindowDimensions } from 'react-native';
2+
import { Text, useWindowDimensions, View } from 'react-native';
33
import { Emoji as EmojiProps } from '@rocket.chat/message-parser';
44

55
import Plain from '../Plain';
@@ -68,7 +68,11 @@ const Emoji = ({ block, isBigEmoji, style = {}, index, isAvatar = false }: IEmoj
6868
};
6969

7070
if (emoji) {
71-
return <CustomEmoji style={[isBigEmoji ? customEmojiBigSize : customEmojiSize, style]} emoji={emoji} />;
71+
return (
72+
<View style={[{ transform: [{ translateY: 3 }] }]}>
73+
<CustomEmoji style={[isBigEmoji ? customEmojiBigSize : customEmojiSize, style]} emoji={emoji} />;
74+
</View>
75+
);
7276
}
7377

7478
return (

0 commit comments

Comments
 (0)