Replies: 1 comment 2 replies
-
Regarding 1., could it be that you are using About 2., no there isn't, 3. is definitely a nice way to approach it.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been testing the library out for a little bit, I have a few questions :)
I presume I cannot
const svg = useSVG(require("../../assets/tiger.svg"));
whilst also having react-native-svg installed? I tried it and get an error, I suspect this is because of the way SVG are bundled when using RNSVG. Perhaps this should be mentioned in the docs.Is there any way to specify other SVG properties on ImageSVG other than
svg, x, y, width, height
? I would like to be able to specify the fill/stroke colours etc.Following on from 1) & 2), I have worked around my issues by the following code:
Is this a good solution to 1) and 2) or is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions