Code Monkey home page Code Monkey logo

Comments (9)

stipsan avatar stipsan commented on July 28, 2024 5

@simonrelet yes that is the idea. The reason I've held off on it though is that these options are different in the upcoming version of react-spring, v9. I could compromise on using an unstable_ prefix on this prop/option while we're on v8. If I add it now understand that these options will be a "use at your own risk" kind of deal.

from react-spring-bottom-sheet.

simonrelet avatar simonrelet commented on July 28, 2024 4

Hello there!
@stipsan Huge thanks for the library 🙏

Would it be conceivable to also have an API to set the duration/spring config at the component level?
ref.current.snapTo() could "use it" by default and override it if a config is passed as parameter.

What do you think?

from react-spring-bottom-sheet.

ejabu avatar ejabu commented on July 28, 2024 2

Hi @stipsan , we have a good news from React Spring side.

Finally the version 9 is merged

from react-spring-bottom-sheet.

ejabu avatar ejabu commented on July 28, 2024 2

Brilliant 🎉 Btw, @otox-rz and @ejabu, what's up with the 🍔 themed avatars? 😂

lol, I had to create another account to conform my office rules, using Work email for git user. 🤣

from react-spring-bottom-sheet.

Agrejus avatar Agrejus commented on July 28, 2024 2

FYI - Here is an answer for changing the speed

#151 (comment)

from react-spring-bottom-sheet.

otox-rz avatar otox-rz commented on July 28, 2024 1

Hi @stipsan , I think we will have the good news soon .

Release Plan v9 of react-spring

from react-spring-bottom-sheet.

stipsan avatar stipsan commented on July 28, 2024

Heya, react-spring support it. If I expose it like this:

ref.current.snapTo(({maxHeight}) => maxHeight, {duration: 250})

would that work for you?

from react-spring-bottom-sheet.

yairhaimo avatar yairhaimo commented on July 28, 2024

That would be great. Thanks!

from react-spring-bottom-sheet.

stipsan avatar stipsan commented on July 28, 2024

Brilliant 🎉 Btw, @otox-rz and @ejabu, what's up with the 🍔 themed avatars? 😂

from react-spring-bottom-sheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.