feat: getImage iOS
Overview
Added getImage support for iOS.
Test Plan
- Copy JPEG image
- Paste the image and verify it's pasted as jpeg
- Copy PNG image
- Paste the image and verify it's pasted as png
- Copy GIF image
- Paste the image and verify it's pasted as gif
https://github.com/user-attachments/assets/2231b890-8698-49bf-be40-461d79607fc7
https://github.com/user-attachments/assets/699eea6f-3b97-4df8-be25-ab54d0821d6a
In our use case, we need to use getImage because using getImagePNG for JPEG is slower
| Copying as JPEG | Copying as PNG |
|---|---|
Putting this on draft while I add support for more image types including GIF
Ready for review
Amazing! How did you enable text input to capture the Paste event?
@durdevic There is a proposal on adding onPaste to TextInput but not approved yet. However you can patch RN and apply changes from https://github.com/facebook/react-native/pull/45425
@Naturalclar Would you be able to review this one?
Perfect, thanks for that one! @s77rt
Let's hope both got merged in the next release 🤞