[TS Migration] Migrate Image to TypeScript#31296
[TS Migration] Migrate Image to TypeScript#31296roryabraham merged 51 commits intoExpensify:mainfrom
Conversation
|
@aimane-chnaif kindly bump 😄 |
|
@JKobrynski please merge main |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movandroid-2.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
@aimane-chnaif main merged! |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25107 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
ok so TS error happening after merge main. Please fix it |
| } | ||
|
|
||
| return typeof receiptData?.image === 'string' ? {uri: receiptData.image} : receiptData?.image; | ||
| }, []); |
There was a problem hiding this comment.
React Hook useMemo has missing dependencies: 'receiptData.image' and 'receiptData.thumbnail'. Either include them or remove the dependency array
|
Conflicts! |
|
@aimane-chnaif resolved! |
| } | ||
|
|
||
| function imagePropsAreEqual(prevProps, nextProps) { | ||
| function imagePropsAreEqual(prevProps: ImageOwnProps, nextProps: ImageOwnProps) { |
There was a problem hiding this comment.
NAB but idk why this function isn't just inlined as an arrow function since it's so simple
| resizeMode?: ImageResizeMode; | ||
|
|
||
| /** Event for when the image begins loading */ | ||
| onLoadStart?: () => void; |
There was a problem hiding this comment.
NAB but wouldn't unknown make more sense than void here (and for onLoadEnd, onError, onLoad, onProgress) since we just don't know or care about the return type?
|
not sure why the reviewer checklist check isn't passing, but I double-checked that it's filled out completely, so I'm going to ignore that and merge. Maybe caused by the current GitHub incident? |
@roryabraham it's because of old checklist here |
|
Yeah, but I updated the checklist with the version from main and then re-ran the check, and it failed again. Anyways, nabd. The checklist was complete |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Melvin finds first checklist and ignores later ones. So to make last checklist work, all previous checklists should be removed |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.4.47-0 🚀
|
|
This is a long shot, but is there any chance this PR could have caused #37725? |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.47-10 🚀
|
Details
Fixed Issues
$ #25107
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as Tests section above
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
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop