Repository navigation
Replace Image.getSize with react-native-image-size - #38746
roryabraham merged 7 commits into
Conversation
| "react-native-haptic-feedback": "^2.2.0", | ||
| "react-native-image-picker": "^7.0.3", | ||
| "react-native-image-size": "git+https://github.com/Expensify/react-native-image-size#8393b7e58df6ff65fd41f60aee8ece8822c91e2b", | ||
| "react-native-image-size": "file:../react-native-image-size/react-native-image-size-1.1.3.tgz", |
There was a problem hiding this comment.
Don't forget to update this once Expensify/react-native-image-size#4 (review) gets merged
| 'no-restricted-properties': [ | ||
| 'error', | ||
| { | ||
| object: 'Image', | ||
| property: 'getSize', | ||
| message: 'Usage of Image.getImage is restricted. Please use the `react-native-image-size`.', | ||
| }, | ||
| ], |
There was a problem hiding this comment.
This error can be ignored by changing the import name like this:
import {Image as Image2} from '...'
I couldn't find a way to block this one as well.
|
@ishpaul777 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeRecord_2024-03-28-21-36-13.mp4Record_2024-03-28-21-47-38.mp4Android: mWeb ChromeRecord_2024-03-28-21-41-51.mp4iOS: NativeiOS: mWeb SafariScreen.Recording.2024-03-28.at.8.55.38.PM.movMacOS: Chrome / SafariScreen.Recording.2024-03-28.at.8.32.01.PM.movMacOS: DesktopScreen.Recording.2024-03-28.at.8.32.01.PM.mov |
|
@kosmydel Can you please resolve conflicts |
Done. I've quickly tested it. |
|
@roryabraham looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ 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/roryabraham in version: 1.4.59-0 🚀
|
|
emergency label was applied in error |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
Fixed Issues
$ #38500
PROPOSAL: N/A
Tests
Imagefrom thereact-nativeand use thegetSizemethod.Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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.mov
Android: mWeb Chrome
mweb-android.mov
iOS: Native
ios.mp4
iOS: mWeb Safari
mweb-ios.mp4
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov