-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
WIP: feat(text-base): allow to set image for span #8638
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
69b0b0c
to
d5310ae
Compare
🎉 |
@dosomder This is great. Possible to add to the |
Yes, I will try that. I am still working on the behavior of iOS. I want it to match the Android version. Also need to work on the delete (backspace) behavior. Also this bug needs to be fixed #8620. It would be great if you could decide if the bug can be fixed. By the way (at least on Android), this only allows to use local images. Still a very important feature in my opinion. |
8753605
to
86395da
Compare
d4ced42
to
53488b5
Compare
@dosomder Would you be available to collaborate over next couple weeks to wrap this up? |
I have very limited time to work on this but still really interested to have it available in the official repo. The only thing I was thinking about is currently this solution loads the image from the filepath all the time. If you are using an image many times, then this is very bad performance. It would be good if you could also pass e.g. on android a drawable directly. |
PR Checklist
What is the current behavior?
You can not add images to formatted text even though iOS and Android provide this ability.
What is the new behavior?
You can add image to
<Span>
by usingimageSrc
.It seems like on Android if using
createFromPath
it does not apply the file's resolution. That's why I also addedimageHeight
. On iOS this is optional as it applies the file's resolution by default.Fixes/Implements/Closes #6366