callstack / callstack/react-native-pager-view

Support custom Spring Configurations

オープン
#317 コメント 2 件 リアクション 6 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
3.4k
フォーク
476
平均マージ
10日 21時間
マージ済み PR(30日)
2

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、React Native pager コンポーネントをネイティブの UIPageViewController 統合まで追跡し、最初の参照ポイントとして iOS の spring 設定の動作を確認します。プロジェクトが設定可能な spring 設定を求めているのか、公開された x 値を求めているのかを明確にし、その後、選択したオプションで React コンポーネントを介して pager アニメーションを制御できることを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, react-native
領域
mobile
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。