You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a number for the width and height props forces you to know your image before hand.
If you supplied a string and then just passed it to the styles for the Image component it should render correctly even if you do '50%'. If I pass in styles from the Image component it even works but it gives a warning for prop types and it says you shouldn't assign width and height to div elements.
If you think its a good idea to make a change I can give it a go 👍
The text was updated successfully, but these errors were encountered:
Using a number for the width and height props forces you to know your image before hand.
If you supplied a string and then just passed it to the styles for the
Image
component it should render correctly even if you do'50%'
. If I pass in styles from theImage
component it even works but it gives a warning for prop types and it says you shouldn't assign width and height to div elements.If you think its a good idea to make a change I can give it a go 👍
The text was updated successfully, but these errors were encountered: