Uh oh!
There was an error while loading. Please reload this page.
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] |
chrispader
commented
Nov 17, 2023
Ready for review! 👍 @roryabraham@Szymon20000 |
numberOfLines/maxNumberOfLines workaroundnumberOfLines/maxNumberOfLines workaround (manually calculating maxHeight of TextInputchrispader
commented
Nov 21, 2023
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. :) |
danieldoglas
commented
Nov 21, 2023
@situchan will review this PR as a C+ so we can move faster! |
chrispader
commented
Nov 27, 2023
@situchan do you have some time to review this soon? :) Android build speed gainzz would be awesome to have haha |
situchan
commented
Nov 27, 2023
reviewing today |
situchan
commented
Nov 28, 2023
Installation time is now 9 min for me 👍 |
Uh oh!
There was an error while loading. Please reload this page.
situchan
commented
Nov 28, 2023
BUG1: [iOS] last line is not removed after removing all text on that line ios.bug.mov |
Fixing so the help steps are numbered
chrispader
commented
Jan 24, 2024
@mountiny can we merge this now that iOS is building? Getting conflicts with |
situchan
commented
Jan 24, 2024
@mountiny Let's do that! I couldn't still be able to install above build on my iPhone but should not be blocker. |
mountiny
commented
Jan 24, 2024
@AndrewGable@danieldoglas can one of you approve and merge since you have been involved in this PR? |
danieldoglas
commented
Jan 25, 2024
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. |
chrispader
commented
Jan 25, 2024
resolved! @danieldoglas |
danieldoglas
commented
Jan 25, 2024
Waiting for the checks, then will merge. |
| Turf: 13d1a92d969ca0311bbc26e8356cca178ce95da2 | ||
| VisionCamera: 7d13aae043ffb38b224a0f725d1e23ca9c190fe7 | ||
| Yoga: e64aa65de36c0832d04e8c7bd614396c77a80047 | ||
| Yoga: 13c8ef87792450193e117976337b8527b49e8c03 |
There was a problem hiding this comment.
NAB: this change is irrelevant to this PR
OSBotify
commented
Jan 25, 2024
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
situchan
commented
Jan 26, 2024
@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 |
chrispader
commented
Jan 26, 2024
@situchan i just deleted |
chrispader
commented
Jan 26, 2024
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 |
situchan
commented
Jan 26, 2024
Same worked for me. Sorry for confusion. |
situchan
commented
Jan 26, 2024
It took 15 min to build android. Much faster 👍 |
situchan
commented
Jan 26, 2024
Agree |
OSBotify
commented
Jan 29, 2024
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.4.33-0 🚀
|
OSBotify
commented
Jan 31, 2024
🚀 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