react-native-pager-view icon indicating copy to clipboard operation
react-native-pager-view copied to clipboard

Support custom Spring Configurations

Open mrousavy opened this issue 3 years ago • 1 comments

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

mrousavy avatar Apr 01 '21 12:04 mrousavy

Hey 👋 I believe the native UIPageViewController supports custom spring configurations

Unfortunately it does not. This is why we have a plan to rewrite whole pager native component to control an animation from JS perspective.

troZee avatar Nov 21 '22 21:11 troZee