rive-app / rive-app/rive-react
animations change don't work correctly
Open
Nobody has claimed this yet.
triage
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 58
- Avg merge
- 3h 23m
- Merged PRs (30d)
- 6
Description
Hello Rive,
after i change the state in the animations attribute, the animation can no longer be displayed.
rive-react is use 1.0.4
import "./styles.sass";
import Rive from "rive-react";
const LoadingAnimation = ({ dark }) => {
return (
<Rive
className="loading-animation"
src={`/rive/loadinganimation.riv`}
autoPlay
useOffscreenRenderer={false}
animations={dark ? "dark" : "light"}
/>
);
};
export default LoadingAnimation;

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided LoadingAnimation component and rive-react 1.0.4, changing the dark state so the animations prop switches between "dark" and "light". Inspect how the Rive component handles animation prop changes and compare the behavior with issue 65. Done means the animation remains displayed after the state change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100