-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix emojis display #46478
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
Fix emojis display #46478
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
On it |
I thought you said we want to fix this on lib as it is same there. |
| const composerStyle = useMemo(() => { | ||
| let lineHeightStyle; | ||
|
|
||
| if (doesTextContainOnlyEmojis) { | ||
| lineHeightStyle = styles.onlyEmojisTextLineHeight; | ||
| } else if (doesTextContainEmojis) { | ||
| lineHeightStyle = styles.emojisWithTextLineHeight; | ||
| } | ||
|
|
||
| return StyleSheet.flatten([style, lineHeightStyle]); | ||
| }, [style, doesTextContainEmojis, doesTextContainOnlyEmojis, styles]); |
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.
I think it is not a good idea as it will change the design for composer for different text. We want to keep the composer to always look same regardless of the text or formatting.
I will test and it how it looks.
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.
@parasharrajat Could you reference it, please? |
|
Ah, I think I didn't post this issue on the main PR. Somehow confused it with other emoji clipping issue. Anyways, I think if this issue is present on the markdown lib then we should solve it there. Looks like we have been discussing something similar here #46444 |
|
Any thoughts @VickyStash ? |
|
@parasharrajat I don't think that #46448 and #46444 are the same. The lib fix for the 46444 will not have any affect on the 46448 - which is fixed in this PR. |
|
Closing, since #40692 got reverted. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |

Details
This PR is a follow-up of the #40692 and fixes related issues:
Fixed Issues
$ #46443
$ #46448
$ #46451
PROPOSAL: N/A
Tests
Case 1:
Case 2:
Case 3: iOS
Offline tests
Same as in the Tests section
QA Steps
Same as in the Tests section
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop