meliorence / meliorence/react-native-snap-carousel
Tinder layout does not show stacked items by default, it just shows one item
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
List starts with one item and then on swiping items get stacked up. I want the opposite effect. It should start with the stack and then swiping should remove item.
How can I achieve this? This is how I'm using it with 4 elements...
<Carousel
layout={'tinder'}
contentContainerStyle={{
alignItems: 'flex-start',
justifyContent: 'flex-start',
marginBottom: 0,
}}
containerCustomStyle={{
height: 160,
width: '100%',
}}
data={slides}
renderItem={_renderItem}
sliderWidth={Dimensions.get('window').width - 30}
itemWidth={Dimensions.get('window').width - 30}
onSnapToItem={index => setSlideNumber(index)}
/>
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 by tracing the Carousel usage with layout='tinder' and the Tinder-layout implementation it selects. Check how the initial active index and item stacking are determined, then verify the behavior with four items: the stack should be visible initially and swiping should remove items from it.
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