Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
divyanshu013 committed Apr 5, 2020
2 parents 8bee418 + 2f28a0e commit 3c87d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReactAnimatedWeather.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const ReactAnimatedWeather = ({
const skyconCanvas = useRef(null);

useEffect(() => {
const skyconIcon = new Skycons({ color });
const skyconIcon = new Skycons({ color, resizeClear: true });
const canvas = skyconCanvas.current;
setIcon(icon, animate, skyconIcon, canvas);

return () => {
skyconIcon.remove(canvas);
};
}, [icon, color, animate]);
}, [icon, color, animate, size]);

return <canvas ref={skyconCanvas} width={size} height={size} />;
};
Expand Down

0 comments on commit 3c87d37

Please sign in to comment.