meliorence / meliorence/react-native-snap-carousel
How to show the portions of previous and next item when an active item is shown?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Is this a bug report, a feature request, or a question?
Question.
Have you followed the required steps before opening a bug report?
(Check the step you've followed - put an x character between the square brackets ([]).)
- I have read the guidelines regarding bug report.
- I have reviewed the documentation in its entirety, including the dedicated documentations 📚.
- I have searched for existing issues and made sure that the problem hasn't already been reported.
- I am using the latest plugin version.
- I am following the issue template closely in order to produce a useful bug report.
Have you made sure that it wasn't a React Native bug?
I dont think this is a bug, but a feature i want to use
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
Not a bug.
Is the bug reproductible in a production environment (not a debug one)?
Not applicable
Environment
"react": "17.0.1",
"react-native": "0.64.2",
"react-native-snap-carousel": "^3.9.1",
Android (6.0)
Expected Behavior
I wanted the scrolling to be like this like in this link https://imgur.com/e1WbZcu, that you have provided in the page documentation. What i want to achieve is that when we swipe an item a little bit portion of the previous item and portion of the item to be shown must be displayed like in the link.
Actual Behavior
I have added the layout prop as default to the carousel component and it is working like this.
Showin only one screen at a time, the portions of previous and later items are not shown.
These are the codes I have used.
Reproducible Demo
I don't know how to use the snackexpo. I am completely new to the programming world.
Steps to Reproduce
(Write your steps so that anyone can reproduce the issue in the Snack demo you provided.)
1.Install react native snap carousel
2.Just add the example usage
3. Then run it
Contributor guide
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 with the README carousel preview example and the Carousel configuration shown in the issue, especially sliderWidth, itemWidth, and layout. Compare the requested preview effect with the documented usage and determine whether the result is achievable through existing props; done means providing a verified configuration or identifying the missing feature.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100