-
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
upgrade react-native-live-markdown to 0.1.76 #42454
upgrade react-native-live-markdown to 0.1.76 #42454
Conversation
@eVoloshchak Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/Videos |
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.
Works well!
Tests section could be improved, all 3 scenarios lack the final step
(for the first it would look something like "3. Verify the bottom of the text isn't cut off", for the second "Verify that xext entered and emojis on the next line are not close to each other" and so on)
TestsText in some languages gets cut off at the bottom in composer on ios #17767
When moving to another line, the word and emoji are close to each other #14445
Cursor in the second and following lines touches the symbols of the previous line #15640 |
iOS: NativeText in some languages gets cut off at the bottom in composer on iosIssue #17767
Expensify Composer (When moving to another line, the word and emoji are close to each other):Issue #14445 The difference of baseline is 1.15 (barely noticeable), maximumLineHeight 20, maximumFontLineHeight 17.69
The result below is achieved after setting textInputCompose.lineHeight: 40.
Chat - Cursor in the second and following lines touches the symbols of the previous lineIssue #15640
|
Thanks @eVoloshchak |
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.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.4.77-0 🚀
|
Hello 👋 @fabOnReact @eVoloshchak, This PR is reverted #42843 because of a regression #42766 |
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
Also want to highlight this bug that was found in the updated version https://expensify.slack.com/archives/C049HHMV9SM/p1717078251523439 if you cannot access here is a video:
RPReplay_Final1717078125.MP4 |
@mountiny it is not related to the changes in my PR Expensify/react-native-live-markdown#350 Thanks Screen.Recording.2024-06-05.at.11.39.40.AM.mov |
Details
Bump react-native-live-markdown to 0.1.76 to add fix from PR Expensify/react-native-live-markdown#350.
The PR updates the
NSBaselineOffsetAttributeName
for the iOS TextInputattributedText
based on the following formula:The text is vertically centered in the lineHeight of the TextInput (which corresponds to the height of the cursor).
The solution was already added in facebook/react-native:
Fixed Issues
$ #17767
$ #14445
$ #15640
PROPOSAL: #17767 (comment)
Tests
Text in some languages gets cut off at the bottom in composer on ios #17767
मु
is not cut off (before, after)When moving to another line, the word and emoji are close to each other #14445
j
on the first line and emoji like 💀 (skull) on the second lineCursor in the second and following lines touches the symbols of the previous line #15640
Offline tests
Not relevant.
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 and/or tagged@Expensify/design
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
Text in some languages gets cut off at the bottom in composer on ios
Issue #17767
Original comment with screenshots Expensify/react-native-live-markdown#350
Expensify Composer (When moving to another line, the word and emoji are close to each other):
Issue #14445
Original comment with screenshots Expensify/react-native-live-markdown#350
The difference of baseline is 1.15 (barely noticeable), maximumLineHeight 20, maximumFontLineHeight 17.69
The result below is achieved after setting textInputCompose.lineHeight: 40.
Chat - Cursor in the second and following lines touches the symbols of the previous line
Issue #15640
Original Comment with screenshots #15640 (comment)
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop