leecade / leecade/react-native-swiper

Animated.ScrollView

Open
#674 1 comment 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

In our app we're currently using a modified version of react-native-swiper, where we replaced ScrollView with Animated.ScrollView (here), so we can bind an Animated.Event to the onScroll handler.

Is this something we can add to the main library? Through a prop for example:

<Swiper animated={true}></Swiper>

And in the code of react-native-swiper we can conditionally render an Animated.ScrollView or a regular ScrollView.

Is this something we can add through a PR, or do you have other/better suggestions?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/index.js around the ScrollView usage at line 626, which the issue identifies as the relevant entry point. Check how the component currently selects its scroll view and define the expected behavior for the proposed animated prop, including preserving the regular behavior by default and allowing an Animated.Event on onScroll; done means both modes work as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.