leecade / leecade/react-native-swiper
Animated.ScrollView
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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