File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,9 @@ class EmojiPickerMenu extends Component {
298
298
/**
299
299
* Given an emoji item object, render a component based on its type.
300
300
* Items with the code "SPACER" return nothing and are used to fill rows up to 8
301
- * so that the sticky headers function properly
301
+ * so that the sticky headers function properly.
302
+ * We add '\uFE0F' to our unicode to force the correct emoji presentation (VS16)
303
+ * on emojis that also have a text style presentation (VS15).
302
304
*
303
305
* @param {Object } item
304
306
* @param {Number } index
@@ -313,7 +315,7 @@ class EmojiPickerMenu extends Component {
313
315
if ( header ) {
314
316
return (
315
317
< Text style = { styles . emojiHeaderStyle } >
316
- { code }
318
+ { ` ${ code } \uFE0F` }
317
319
</ Text >
318
320
) ;
319
321
}
@@ -322,7 +324,7 @@ class EmojiPickerMenu extends Component {
322
324
< EmojiPickerMenuItem
323
325
onPress = { this . props . onEmojiSelected }
324
326
onHover = { ( ) => this . setState ( { highlightedIndex : index } ) }
325
- emoji = { code }
327
+ emoji = { ` ${ code } \uFE0F` }
326
328
isHighlighted = { index === this . state . highlightedIndex }
327
329
emojiSize = { this . emojiSize }
328
330
/>
Original file line number Diff line number Diff line change @@ -58,15 +58,15 @@ class EmojiPickerMenu extends Component {
58
58
if ( item . header ) {
59
59
return (
60
60
< Text style = { styles . emojiHeaderStyle } >
61
- { item . code }
61
+ { ` ${ item . code } \uFE0F` }
62
62
</ Text >
63
63
) ;
64
64
}
65
65
66
66
return (
67
67
< EmojiPickerMenuItem
68
68
onPress = { this . props . onEmojiSelected }
69
- emoji = { item . code }
69
+ emoji = { ` ${ item . code } \uFE0F` }
70
70
emojiSize = { this . emojiSize }
71
71
/>
72
72
) ;
You can’t perform that action at this time.
0 commit comments