Closed xinha-sh closed 1 year ago
I’ll look into the style issue. Width is required unless you use the fill
property.
I actually don’t think this is a solito image issue. If you use it directly, the style prop isn’t required. So it must be an issue with nativewind’s styled()
I actually don’t think this is a solito image issue. If you use it directly, the style prop isn’t required. So it must be an issue with nativewind’s styled()
Got it.Thanks.
If not using tailwind how would you recommend dynamic width height for Image component
@nandorojo I stumbled upon this youtube video regarding next/image. It's in-dept and I felt should be included in solito docs. Hence raising a PR https://github.com/nandorojo/solito/pull/271
You should wrap solito/image
with styled
by the way.
Hi I'm using nativewind for styling. And my image component looks like this
Error shown is
I'm able to bypass this error via adding a style prop with
{{}}
as value. ieBut after that I'm getting following error: