callstack / callstack/react-native-pager-view
Support custom Spring Configurations
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3.4k
- Forks
- 476
- Ø Merge
- 10 T. 21 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
## 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
Beitragsleitfaden
Rechercherichtung
Beginne damit, die React-Native-Pager-Komponente bis zu ihrer nativen UIPageViewController-Integration nachzuverfolgen, wobei das Verhalten der iOS-Spring-Konfiguration als erster Bezugspunkt dient. Kläre, ob das Projekt konfigurierbare Spring-Einstellungen oder einen exponierten x-Wert benötigt, und überprüfe anschließend, ob die ausgewählte Option die Pager-Animation über die React-Komponente steuern kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, react-native
- Bereich
- mobile
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100