-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
refactor: FrescoBasedTextInlineImageSpan #50532
base: main
Are you sure you want to change the base?
refactor: FrescoBasedTextInlineImageSpan #50532
Conversation
Hi @mateoguzmana, I'm mostly done with the migration but facing some error with the Line 47 in 3d7db8b
But this line is erroring out when trying to test with Line 133 in 3d7db8b
I'm not sure about the usage of that class' types, as the java variant didn't specifically define those. Could you please help a little? Thank you so much! |
private val tintColor: Int, | ||
uri: Uri?, | ||
private val headers: ReadableMap?, | ||
private val draweeControllerBuilder: AbstractDraweeControllerBuilder<*, *, ImageRequest, *>, |
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.
Try:
private val draweeControllerBuilder: AbstractDraweeControllerBuilder<*, *, ImageRequest, *>, | |
private val draweeControllerBuilder: AbstractDraweeControllerBuilder<*, ImageRequest, *, *>, |
Was a bit tricky to understand as well, but this worked
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.
Thank you for this! It worked. My bad I was passing ImageRequest as the third param while the class signature expects it to be on the 2nd:
13bf39a
to
e43f277
Compare
45e9048
to
86d7e7c
Compare
Summary:
I've migrated
FrescoBasedTextInlineImageSpan.java
to kotlin. Reference #50513.Changelog:
[ANDROID] [CHANGED] - Refactor class
FrescoBasedTextInlineImageSpan
from Java to Kotlin.Test Plan:
Tested the RN tester app with
yarn android
on both new and old architecture.