Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

251
Visualizações
How to create a carousel like this?

I want to create a carousel like the one shown below. The center item will have a higher elevation to indicate that this is the current item and whenever the user scrolls, the next item will be elevated and so on. The center item will be overlapping the left and the right item. I tried to use react-native-snap-carousel with the stack option, but that only shows the left item and in case of ios, only the right item. I tried tinder, but that is quite same as well. I tried default, but there are gaps in between each item which I do not want. I tried react-native-anchor-carousel. But, this makes the center item transparent for some reason.

<Carousel
      style={styles.carousel}
      data={review}
      renderItem={renderitem}
      itemWidth={240}
      activeSlideAlignment="center"
      sliderWidth={windowWidth - 20}
      separatorWidth={-100}
      itemContainerStyle={{
        alignItem: 'center',
        marginTop: 18,
      }}
      inActiveOpacity={0.1}
      ref={carouselRef}
      loop={true}
/>

Render Item is below

 const renderitem = ({item}) => {
    return (
      <View
        style={[styles.item]}
        onPress={() => {
          this._carousel.scrollToIndex(index);
        }}>
        <View style={styles.circle}>
          <Image
            style={styles.image}
            source={{uri: item.serviceImage}}
            resizeMode="cover"
          />
        </View>
        <Text style={styles.serviceNameText}>{item.serviceName}</Text>
        <Text style={styles.name}>{item.reviewerName}</Text>

        <Text style={styles.content}>{item.content}</Text>
      </View>
    );
  };

Desired output

This is when I use react-native-anchor-carousel

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda