-
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 'AttachmentPicker' component to TypeScript #37810
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.
Great work! Just couple of comments
src/components/AttachmentPicker/launchCamera/launchCamera.ios.ts
Outdated
Show resolved
Hide resolved
@blazejkustra Thanks for your comments and suggestions. I just updated the code, please check again. |
@blazejkustra I just updated the code, please check again 🙏 |
@dukenv0307 Is this ready for a another review? cc @situchan |
@situchan @blazejkustra I updated the code, please check again 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
I finished review on my side. Tests well. |
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25134 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
@@ -29,4 +26,5 @@ export default function launchCameraIOS(options, callback) { | |||
errorCode: error.errorCode || 'others', | |||
}); | |||
}); | |||
} | |||
}; | |||
export default launchCameraIOS; |
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.
If a module exports something as a default, then it should be exporting something with the same name as the file. Can you please change this to export launchCamera
instead, please?
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.
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.
I suggest importing launchCamera
with an alias name in that case. Maybe launchCameraImagePicker
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.
@tgolen I updated.
Co-authored-by: Tim Golen <tgolen@gmail.com>
@tgolen I added descriptions, please check again 🙏 |
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.
Thank you for adding all the descriptions!
@@ -29,4 +26,5 @@ export default function launchCameraIOS(options, callback) { | |||
errorCode: error.errorCode || 'others', | |||
}); | |||
}); | |||
} | |||
}; | |||
export default launchCameraIOS; |
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.
I suggest importing launchCamera
with an alias name in that case. Maybe launchCameraImagePicker
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.
Great, thank you!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
Fixed Issues
$ #25134
PROPOSAL: #25134 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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
android-resize.mp4
Android: mWeb Chrome
android-mweb-resize.mp4
iOS: Native
ios-resize.mp4
iOS: mWeb Safari
ios-mweb-resize.mp4
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop
desktop-resize.mp4