callstack / callstack/react-native-pager-view

Support custom Spring Configurations

Open
#317 2 comments 6 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
3.4k
Forks
476
Avg merge
10d 21h
Merged PRs (30d)
2

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.