question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image transform scale property

See original GitHub issue

Setting the transform scale property in react-native-svg@5.2.0 does not appear to have any effect.

` Note that the following Image component is imported from react-native-svg (not react):

      <Image
          x="20"
          y="20"
          width="50%"
          height="50%"
          href={require('./image.png')}
          transform="scale(0.5, 0.5)"          
      />

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
0mkaracommented, Jul 12, 2017

Did you try transform={{scale:'0.5, 0.5'}}

1reaction
msandcommented, Aug 24, 2017

@dk0r @0mkara @awreese I’ve now ported almost all the fixes from android to ios here: #430 npm i -s react-native-svg@https://github.com/msand/react-native-svg.git#13d5157

Read more comments on GitHub >

github_iconTop Results From Across the Web

scale() - CSS: Cascading Style Sheets - MDN Web Docs
This scaling transformation is characterized by a two-dimensional vector. Its coordinates define how much scaling is done in each direction. If ...
Read more >
CSS transform property - W3Schools
The transform property applies a 2D or 3D transformation to an element. This property allows you to rotate, scale, move, skew, etc., elements....
Read more >
scale - CSS-Tricks
The scale property in CSS resizes an element's width and height in proportion. So, if we have an element that's 100 pixels square, ......
Read more >
Scaling image with CSS Transition - Stack Overflow
I sometimes solve strange jumps on transition by adding rotate(0.01deg) on the transform property, like ...
Read more >
CSS Scale() | Top 5 Examples of scale() Function in CSS
A CSS scale() function is defined as a CSS Transformation property which allows resizing an element in the Two-dimensional Plane. It is used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found