-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Support image pasting on Native #45722
Conversation
@ahmedGaber93 You should be able to test the PR |
@s77rt Great job, I tested it and it works perfectly. |
The storybook entry for Composer is not working (but that's a problem in |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
@ahmedGaber93 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] |
@ahmedGaber93 Can you please review / complete the checklist |
@s77rt Copy and paste images works well 👍, but I faced a bug when uploading a GIF image on android, The app stuck after click send button. 20240804092201280.mp4 |
iOS - displaying the copied image from gallery take too long time compared with displaying the picked image from gallery. 20240804094032157.mp4 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativea.mp4Android: mWeb Chrome20240804101836208.mp4iOS: Native20240804100100712.mp4iOS: mWeb Safari20240804101610409.mp4MacOS: Chrome / Safari20240804102036430.mp4MacOS: Desktop20240804102411541.mp4 |
@ahmedGaber93 Thanks for testing. I think the slowness is due to long base64 strings. I'm working on moving to URI instead |
@ahmedGaber93 I have pushed fixes. Can you please retest from your side Screen.Recording.2024-08-06.at.12.55.59.AM.mov |
Retested, and it works well now 👍 |
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!
Created https://github.com/Expensify/Expensify/issues/418566 as a follow-up to add regression tests for this new functionality |
✋ 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: 9.0.18-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.18-10 🚀
|
Details
TextInput
is having a new callbackonPaste
(facebook/react-native#45425) which is invoked when the user performs the paste action. The callback event contains the clipboard data. If files are found in the clipboard, upload them.Fixed Issues
$ #41239
PROPOSAL: #41239 (comment)
Tests
Offline tests
N/A
QA Steps
Same as Tests
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-chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
mweb-safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov