Skip to content

Feature Request: react-spring support for v8 #553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
littlehaker opened this issue Nov 25, 2024 · 8 comments
Open

Feature Request: react-spring support for v8 #553

littlehaker opened this issue Nov 25, 2024 · 8 comments
Labels
v8 Issues related to Pixi React v8

Comments

@littlehaker
Copy link

Description

The v8 version of @pixi/react has some breaking changes. It seems that @pixi/react-animated is no longer suitable for this version.

Are there any examples of react-spring being used for v8 version?

Or how can I use the animated function from react-spring to lift @pixi/react components?

@trezy trezy added enhancement New feature or request v8 Issues related to Pixi React v8 and removed enhancement New feature or request labels Dec 13, 2024
@thejustinwalsh
Copy link
Collaborator

The approach used in react-spring/three should be able to be used in @pixi/react v8

Dependencies:

Or how can I use the animated function from react-spring to lift @pixi/react components?

Using react-spring/three as a guide, you should be able to use applyProps and gather the primitives from the pixi.js exports to build an animated HOC.

@juniorbatistadev
Copy link

So there's no plan to update @pixi/react-animated to work with v8?

@trezy
Copy link
Collaborator

trezy commented Jan 24, 2025

@juniorbatistadev There are no plans yet because, as @thejustinwalsh mentioned, React Spring doesn't yet work with React 19. Once there's a React 19 compatible release of React Spring, we'll absolutely look into supporting it.

That said, there are other animation libraries (i.e. Motion One) which may also be worth supporting. We likely won't get deep into any of these until @pixi/react@v8 gets a full release.

@juniorbatistadev
Copy link

Motion support would be a dream come true.

@RJWadley
Copy link
Collaborator

Now that @pixi/react@v8 has been published, I took a few hours and put together some basic motion support for it. You can find it on github or npm. Currently it supports the animate and initial props, with whatever transitions you want.

If you already use motion in the rest of your app it's pretty small - around 1 kb gzipped at the moment.

@trezy
Copy link
Collaborator

trezy commented Mar 19, 2025

@RJWadley this is awesome! Would you be interested in incorporating this directly into Pixi React?

@RJWadley
Copy link
Collaborator

@trezy I would love that if yall're interested!

@trezy
Copy link
Collaborator

trezy commented Mar 20, 2025

@RJWadley Yessir! Poke me on Discord and we can discuss further. 🥰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 Issues related to Pixi React v8
Projects
None yet
Development

No branches or pull requests

5 participants