question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple active items in each screen

See original GitHub issue

Would it be possible to have multiple items at one slide just like Apple Music:

screen shot 2017-07-26 at 11 38 35

Would the right approach be to change data such that all elements are grouped with two elements in each group and then print the two elements side-by-side when rendering each item?

However, Airbnb has the same feature where no items are active, but you can only scroll such that two elements are always visible. Can the same behaviour be achieved with the right size options with react-native-snap-carousel?

screen shot 2017-07-26 at 12 47 39

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:10
  • Comments:46 (12 by maintainers)

github_iconTop GitHub Comments

32reactions
phithucommented, Jan 15, 2018

You can style Carousel with prop contentContainerCustomStyle contentContainerCustomStyle={{overflow: 'hidden', width: widthItemSlide * (numberSlide)}} Everything will be Okay

21reactions
FoxInFlamecommented, May 12, 2019

@phithu Amazing! Although it’s not an implementation in the module but instead just limiting the width, it works perfectly in my case.

For reference, this is what I did:

<Carousel
    data={this.props.data}
    renderItem={this._renderItem}
    itemWidth={100}
    activeSlideAlignment={'start'}
    {/** Other props here... */}
    contentContainerCustomStyle={{
        overflow: 'hidden',
        width: 100 * this.props.data.length
    }}
/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to display multiple active items in different breakpoints(xs ...
I am trying to display 10 images in a row in desktop and 5 images in a row in tablet and on click...
Read more >
Select items on your Mac screen - Apple Support
Select multiple items: Press and hold the Command key, then click the items (they don't need to be next to each other). Select...
Read more >
How to Show Multiple Item in Simple React Carousel
Show multiple item. Previously we can show only 1 item at a time, but there are a lot of use case where you...
Read more >
WHEN USING MULTIPLE ITEMS WITH ACTIVE PASSIVE ...
WHEN USING MULTIPLE ITEMS WITH ACTIVE PASSIVE SKILLS ... A. Screen Flow for iOS using Mac and built in game recorder on my...
Read more >
Menu not displaying correct active item - OutSystems
I have a shared menu to be used by one "application" made up of several modules: ... Unfortunately there are more than one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found