Skip to content

React-spring compatibility #8

Open
@giulioz

Description

@giulioz
Member

We should add some examples and investigate how to integrate them nicely with the reflow

Activity

promontis

promontis commented on Oct 3, 2020

@promontis

I would also love to see some examples 🤗

bbohlender

bbohlender commented on Aug 19, 2021

@bbohlender
Contributor

I think the best way for a react-spring integration would be a decoupling between r3f/flex and three where

      group.position.copy(position)

is set. If instead of setting the position directly, the Box-Element can pass a callback that is saved to the boxRefs, which can still just set the position or use a spring to change the position or execute any other function.
This would enable much more control over when and why an element is repositioned while still persisting the current functionality.

I would love to hear your thoughts, and I would also offer to implement this as a PR and make an example 😃

linked a pull request that will close this issue on Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @promontis@giulioz@bbohlender

      Issue actions

        React-spring compatibility · Issue #8 · pmndrs/react-three-flex