jsonhero-web icon indicating copy to clipboard operation
jsonhero-web copied to clipboard

Feature request: Support previewing Lottie JSON files

Open ericallam opened this issue 3 years ago • 3 comments

https://github.com/LottieFiles/lottie-react

ericallam avatar May 04 '22 10:05 ericallam

I'd like to work on this one ! Basically, I have to add a new preview type for the lottieReact player component and require a src value in the json ? Thanks :)

lechasseurVincent2112 avatar Sep 27 '22 18:09 lechasseurVincent2112

@lechasseurVincent2112 yea exactly. We have a separate library here that powers the type inference. You can see here we already have the ability to "infer" object formats here. So you'll need to add a new Lottie format there first before pulling that in to JSON Hero. To make local development possible (without having to release a new version of the @jsonhero/json-infer-types package, you could use npm link

ericallam avatar Sep 27 '22 19:09 ericallam

Ok super, thanks for the answer ! I'll take a look into it tonight :)

lechasseurVincent2112 avatar Sep 27 '22 19:09 lechasseurVincent2112