Skip to content

Support custom Spring Configurations #317

@mrousavy

Description

@mrousavy

Describe the feature

I believe the native UIPageViewController supports custom spring configurations, so it would be nice to expose those to React Native. In my case, I want the spring animation a lot stiffer as it is currently a bit slow. It would be awesome to be able to configure this via the React component.

Another solution would be to simply expose the x value, which you can then animate using Reanimated - this requires little changes for this library and provides unlimited extensibility as we can now animate the x value as we wish (Reanimated.createAnimatedComponent(PagerView) then assign x to a SharedValue)

Motivation

  • More customizability

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions