rive-app / rive-app/rive-react

animations change don't work correctly

Open
#67 5 comments 0 reactions 0 assignees View on GitHub

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;

image

closest to https://github.com/rive-app/rive-react/issues/65

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.