I'm using SVG as my login page logo. I want to display it at the top of the screen with the margin of '10' from the top, I tried to fix it but it doesn't seem to work. Is there any way to fix this? Kindly Help
Asked
Active
Viewed 1,438 times
0
-
You can use a container that parent of Svg component. Than style this parent.
– erkan Apr 06 '21 at 13:44 -
Thanks for your response , Much appreciated :) – The Dude Apr 06 '21 at 14:33
1 Answers
1
If you are using react-native-svg-transformer you can pass it a style property just like with any other React Element.
Otherwise, you could wrap a View around it and style it instead.

Pedro Feltrin
- 438
- 2
- 8