lottie-react icon indicating copy to clipboard operation
lottie-react copied to clipboard

animationData shouldn't be required

Open n0uki opened this issue 5 years ago • 4 comments
trafficstars

Hi, the animationData property shouldn't be mandatory since we can only use the path property. Lottie documentation states that only one of two should be required. https://github.com/airbnb/lottie-web/wiki/loadAnimation-options#path-or-animationdatamandatory-at-least-one

Path is easier to use since it doesn't require to import the json file. Please consider to change that in future release :)

n0uki avatar Nov 02 '20 17:11 n0uki

@n0uki Noted, this will be added in the v3.

Gamote avatar Nov 28 '20 01:11 Gamote

@Gamote Why is this being removed?

liho00 avatar Jun 30 '22 08:06 liho00

Hi @liho00 this is not being removed. It was added in the v3 branch. If you want it in the v2 you are more than welcome to contribute.

Gamote avatar Jun 30 '22 10:06 Gamote

@Gamote lottie-react@v2 dependencies on lottie-web@^5.10.2, lottie-web is support path, why lottie-react@v2 cannot support it?

hotoo avatar Dec 13 '23 08:12 hotoo