vivaxy/react-native-auto-height-image

Required animated attribute

Closed this issue · 3 comments

screenshot_93
screenshot_94

Missing '?' symbol?

By the way, width="100%" doesn't work...

rnike commented

Thanks to pointing this out.

Take a quick look for the width="100%" issue, the width prop should be number for method getImageSizeFitWidth(source, width), but I think we can try something like

<ImageComponent onLayout={e=>setLayoutWidth(e.layout.width)} .../>

and use getImageSizeFitWidth(source, layoutWidth)

Thanks @sa1dai and @yum650350. animated attribute is not required since v3.1.2.