getTextWidth and array of SkiaMutableValue #1758
Unanswered
LucasReinaldo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks, I have a chart component where I am rendering a tooltip in case the user presses and slide across the bars right.
The bars can be stacked and I want to render a tooltip based on the values of the bars, but for some reason when I pass an array of strings to the SkiaText component it doesn't update the value on the screen, only when I use a useValue, is it right or can I follow another approach?
My second issue seems to be in getTextWidth, depending on how I move the width of the tooltip changes but not how it should, sometimes it has different sizes for the same value.
Attached is an example with a line chart.
https://github.com/Shopify/react-native-skia/assets/26369276/eceee745-9921-4e3a-b3e1-22f752b92f3f
Beta Was this translation helpful? Give feedback.
All reactions