-
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
Replace Image.getSize
with react-native-image-size
#38746
Replace Image.getSize
with react-native-image-size
#38746
Conversation
package.json
Outdated
@@ -139,7 +139,7 @@ | |||
"react-native-google-places-autocomplete": "2.5.6", | |||
"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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Image
from thereact-native
and use thegetSize
method.Offline tests
N/A
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 and/or tagged@Expensify/design
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.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