Git Product home page Git Product logo

Comments (9)

hedgerh avatar hedgerh commented on April 28, 2024 28

I managed to get the icon to scale properly by applying scale={width/24} to both of the path elements. Is there a better way to do this, though?

from react-native-svg.

EskelCz avatar EskelCz commented on April 28, 2024 18

Also, the viewbox dimensions should be the original dimensions of the shape.

from react-native-svg.

cjbell avatar cjbell commented on April 28, 2024 11

Just as an update, if you specify a viewbox prop instead of viewBox it works!

from react-native-svg.

kumarkundan avatar kumarkundan commented on April 28, 2024 11

I managed to get the icon to scale properly by applying scale={width/24} to both of the path elements. Is there a better way to do this, though?

Thanks ...I am using scale={0.5} on Path tag ...it's working fine

from react-native-svg.

rlancer avatar rlancer commented on April 28, 2024 10

viewBox should be all lowercase change it to viewbox

from react-native-svg.

pvsmounish avatar pvsmounish commented on April 28, 2024 7

viewbox no more works.
Try viewBox now.

from react-native-svg.

magicismight avatar magicismight commented on April 28, 2024

Fixed in 4.0.0-rc
Now you can use viewbox or viewBox both.
But using viewbox will give a deprecated warning.

from react-native-svg.

trinadhkoya avatar trinadhkoya commented on April 28, 2024

I am using Tab Navigator(react-navigation) ,i placed the Icon over there,How to change the Active to inactive icon when i tap on other icons?

from react-native-svg.

Daavidaviid avatar Daavidaviid commented on April 28, 2024

How to scale differently same svg ?

from react-native-svg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.