-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[TS Migration] Migrate Image to TypeScript #31296
[TS Migration] Migrate Image to TypeScript #31296
Conversation
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!
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React Hook useMemo has missing dependencies: 'receiptData.image' and 'receiptData.thumbnail'. Either include them or remove the dependency array
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.
Done!
Conflicts! |
@aimane-chnaif resolved! |
@@ -56,21 +52,19 @@ function Image(props) { | |||
); | |||
} | |||
|
|||
function imagePropsAreEqual(prevProps, nextProps) { | |||
function imagePropsAreEqual(prevProps: ImageOwnProps, nextProps: ImageOwnProps) { |
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 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop