-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enlarge emojis within text #37980
Enlarge emojis within text #37980
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
src/libs/EmojiUtils.ts
Outdated
@@ -564,6 +564,47 @@ function getSpacersIndexes(allEmojis: EmojiPickerList): number[] { | |||
return spacersIndexes; | |||
} | |||
|
|||
const emojiRegex = /(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move it to CONST file
src/libs/EmojiUtils.ts
Outdated
* Split string into plain text and emojis array with attention to surrogate pairs | ||
* @param text | ||
*/ | ||
const splitTextWithEmojis = (text: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return type
b906650
to
a6768d3
Compare
…ue with emojis layout resolved
Any updates here? Since the PR has been opened for a while now |
Hi @pecanoro I'm still working on some ios and android issues, more info can be found in this update #4114 (comment) |
Closing this PR in favour of #40692 (amount of conflicts was not worth wasting the time to resolve them commit by commit) |
Details
Fixed Issues
$ #4114
PROPOSAL: n/a
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4