-
Notifications
You must be signed in to change notification settings - Fork 3.5k
TextInput numberOfLines/maxNumberOfLines workaround (manually calculating maxHeight of TextInput
#31483
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
TextInput numberOfLines/maxNumberOfLines workaround (manually calculating maxHeight of TextInput
#31483
Conversation
|
@danieldoglas 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] |
|
Ready for review! 👍 @roryabraham @Szymon20000 |
numberOfLines/maxNumberOfLines workaroundnumberOfLines/maxNumberOfLines workaround (manually calculating maxHeight of TextInput
|
We should probably prioritise this PR since it massively reduces Android build time, because once we remove this patch we no longer need to compile Android RN from source. :) |
|
@situchan will review this PR as a C+ so we can move faster! |
|
@situchan do you have some time to review this soon? :) Android build speed gainzz would be awesome to have haha |
|
reviewing today |
|
Installation time is now 9 min for me 👍 |
|
BUG1: [iOS] last line is not removed after removing all text on that line ios.bug.mov |
Fixing so the help steps are numbered
|
@mountiny can we merge this now that iOS is building? Getting conflicts with |
|
@mountiny Let's do that! I couldn't still be able to install above build on my iPhone but should not be blocker. |
|
@AndrewGable @danieldoglas can one of you approve and merge since you have been involved in this PR? |
|
K, another conflict on this. I'm online for the next 3 hours, so please ping me if you solve the conflicts in that time and I'll merge it. |
resolved! @danieldoglas |
|
Waiting for the checks, then will merge. |
| Turf: 13d1a92d969ca0311bbc26e8356cca178ce95da2 | ||
| VisionCamera: 7d13aae043ffb38b224a0f725d1e23ca9c190fe7 | ||
| Yoga: e64aa65de36c0832d04e8c7bd614396c77a80047 | ||
| Yoga: 13c8ef87792450193e117976337b8527b49e8c03 |
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.
NAB: this change is irrelevant to this PR
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@chrispader can you please check this urgently? On main, I am seeing multiple lines in LHN.
Still works fine on this adhoc build.
So possible cases:
|
when building, did you delete your |
|
@situchan i just deleted |
|
The problem you're experiencing is most likely to the patch (that was removed in this PR) still being applied. I might want to post a Slack message to Could you check if that solution works for you? @situchan |
Same worked for me. Sorry for confusion. |
|
It took 15 min to build android. Much faster 👍 |
Agree |
|
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.4.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.33-5 🚀
|




@Szymon20000 @roryabraham
Details
Temporary workaround for
numberOfLines/maxNumberOfLinesprops onTextInputcomponent. This workaround usesmaxHeightandlineHeightstyles to simulate the effect of the missing props, until the upstream RN RFC has been approved and the PR was merged.https://expensify.slack.com/archives/C035J5C9FAP/p1700157933350519?thread_ts=1699609652.957299&cid=C035J5C9FAP
Fixed Issues
$
PROPOSAL:
Tests
Offline tests
Same as in Tests.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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.webm
Android: mWeb Chrome
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-11-17.at.16.45.00.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screen recordings added for iOS and Android