-
Notifications
You must be signed in to change notification settings - Fork 30
feat: add support for pasting images #384
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
base: main
Are you sure you want to change the base?
Conversation
exploIF
left a comment
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.
Works nice!
| uri: string; | ||
| type: string; | ||
| width: Float; | ||
| height: Float; |
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.
Could you create a separate interface that defines pasted image object?
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.
In such scenario, can we use this type just for the codegen, but export adjusted type?
android/src/main/java/com/swmansion/enriched/textinput/utils/RichContentReceiver.kt
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/enriched/textinput/utils/RichContentReceiver.kt
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/enriched/textinput/utils/RichContentReceiver.kt
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/enriched/textinput/utils/RichContentReceiver.kt
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/enriched/textinput/utils/RichContentReceiver.kt
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/enriched/textinput/events/OnPasteImagesEvent.kt
Outdated
Show resolved
Hide resolved
…ichContentReceiver.kt Co-authored-by: Igor Furgała <[email protected]>
…ichContentReceiver.kt Co-authored-by: Igor Furgała <[email protected]>
exploIF
left a comment
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.
Android part looks good 🚀


Summary
Fixes: #164
Fixes: #212
This PR adds:
OnPasteImagesevent.Test Plan
Run example app and try to paste different images/GIFs into the input.
Screenshots / Videos
Screen.Recording.2026-01-22.at.12.58.53.mov
Screen.Recording.2026-01-22.at.13.03.21.mov
Screen.Recording.2026-01-27.at.12.08.17.mov
Compatibility