我怎样才能删除react-native-swiper-flatlist最后的swiper dot?

问题描述 投票:0回答:1

我怎样才能删除react-native-swiper-flatlist最后一次儿童滑动分页点?我尝试过某种方式,但似乎不可能。请帮我。

<View style={styles.container}>
    <SwiperFlatList
      autoplay={false}
      autoplayLoop={false}
      index={0}
      showPagination
      showButtons
      paginationDefaultColor={'gainsboro'}
      paginationActiveColor={'orangered'}
    >
     <View style={styles.child}>
        <Image style={styles.img} source={pic} />
        <Text style={styles.text}>Biz sizə nə vəd edirik ?</Text>
        <Text style={styles.smallText}>Dizaynın qiymətləndirilməsində, oxunan mətnin oxucunun diqqətini yayındırması bir həqiqətdir. Lorem Ipsum istifadə etmənin əsas məqsədi odur.</Text>
     </View>
      <View style={styles.child}>
        <Image style={styles.img} source={pic} />
        <Text style={styles.text}>Sizin rahatlığınız üçün çalışırıq</Text>
        <Text style={styles.smallText}>Dizaynın qiymətlən   dirilməsində, oxunan mətnin oxucunun diq qətini yayındırması bir həqiqətdir. Lorem Ipsum istifadə etmənin əsas məqsədi odur.</Text>
      </View>
      <View style={styles.child}>
        <Image style={styles.img} source={pic} />
        <Container>
            <Content>
               <Text style={styles.text}>Daima yanınızdayıq!</Text>
               <Text style={styles.smallText}>Dizaynın qiymətləndirilməsində, oxunan mətnin oxucunun diqqətini yayındırması bir həqiqətdir. Lorem Ipsum istifadə etmənin əsas məqsədi odur.</Text>
               <Button color='red' block style={styles.buttonStyle}>
                   <Text>Başla</Text>
               </Button>
            </Content>
         </Container>
      </View>
    </SwiperFlatList>
  </View>
react-native
1个回答
0
投票

只需删除分页属性“showPagination”

<SwiperFlatList
      autoplay={false}
      autoplayLoop={false}
      index={0}
      showButtons
      paginationDefaultColor={'gainsboro'}
      paginationActiveColor={'orangered'}
    >

工作示例:https://snack.expo.io/@msbot01/sliderpagination

© www.soinside.com 2019 - 2024. All rights reserved.