rive-app / rive-react

React runtime for Rive

Home Page:https://rive-app.github.io/rive-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No support for static rives

kadenBeckstead opened this issue · comments

I've implemented the rive-react package and am loading rives with the useRive hook. When downloaded and tested my configuration with the poison-loader.riv file from this repo it worked great. When I tried to use one of my own (that has no animations) it throws an error saying Artboard has no animations.

I'd like to be able to load and use all my assets (animated and otherwise) into the app just using the rive package. Is this possible or will this be possible in the future?

Seems like this repo should be able to support rive files which are static and have no animations. Thanks!

image

Hey @kadenBeckstead, we currently don't supporting playing rive files without animations. The simple workaround for this is to add an animation to the artboard with no keyframes and export your file again.