[No QA] [TS migration] Migrate 'getContextMenuItemStyles' style to TypeScript#30159
Conversation
|
@BartoszGrajdek I think we can open this one to review, right? |
|
@fabioh8010 Bartosz is OOO till Thursday, @BartoszGrajdek let's open it for review once you're back! |
|
@alitoshmatov 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] |
|
Reviewing today |
| @@ -0,0 +1,5 @@ | |||
| import {ViewStyle} from 'react-native'; | |||
|
|
|||
| type GetContextMenuItemStyle = (windowWidth?: number) => ViewStyle[]; | |||
There was a problem hiding this comment.
Any reason why windowWidth might undefined?
There was a problem hiding this comment.
I see one usage of GetContextMenuItemStyle with an argument:
App/src/components/ContextMenuItem.js
Line 100 in 5d45f0f
There was a problem hiding this comment.
This is actually something that comes from TS guidelines. It was made that way to keep types consistent for native as well as other platforms. 😄
There was a problem hiding this comment.
Oh, I see I missed the part where native doesn't require any arguments
Reviewer Checklist
Screenshots/VideosAndroid: Nativets-android.movAndroid: mWeb Chromets-mweb.moviOS: Nativets-ios.mp4iOS: mWeb Safarits-safari.mp4MacOS: Chrome / Safarits-web.movMacOS: Desktopts-desktop.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #24726 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
✋ 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/hayata-suenaga in version: 1.3.98-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.98-5 🚀
|
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.99-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.99-0 🚀
|
Details
Fixed Issues
$ #24726
Tests
Offline 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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
web.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
ios.mov
Android
android.mov