meliorence / meliorence/react-native-snap-carousel

How to show the portions of previous and next item when an active item is shown?

Open
#873 1 comment 0 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

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 ([]).)

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.

https://user-images.githubusercontent.com/56026418/135558651-4e62aea1-e9f8-4b1b-874a-a954be832e4f.mp4

Actual Behavior

I have added the layout prop as default to the carousel component and it is working like this.
Capture_12
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

Open the contributing guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.