-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Had an issue where the image wasn't updating. I looked into the code and concluded that this was due to the image proportions being the same values, so the image wasn't rerendering though it was a different image source, so it should've changed.
I suggest the following change;
(Adding props.source to the dependency's)
useEffect(() => {
setImage(
<ImageComponent
{...props}
style={[props.style, {
width: scalableWidth,
height: scalableHeight
}]}
/>
);
}, [scalableHeight, scalableWidth, props.source]);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels