airbnb / react-sketchapp

render React components to Sketch ⚛️💎
http://airbnb.io/react-sketchapp/
MIT License
14.94k stars 821 forks source link

Better Image API Parity with React Native #526

Open macintoshhelper opened 3 years ago

macintoshhelper commented 3 years ago

I am...

------------------------------------------------------------------------------------------------- Requesting a new feature

Proposal/Feature-request:

Improve the Image API parity with React Native by adding some of the static methods and extra props like blurRadius.

The main API method that would be useful is Image.getSize() to make getting image aspect ratios easier, for better use with the useWindowDimensions API. It's possible methods like onLayout could be implemented with the efforts in #472 too.

Implementation details: