【问题标题】:how to Auto-adjusting height of react-native-swiper component如何自动调整 react-native-swiper 组件的高度
【发布时间】:2020-09-26 17:45:55
【问题描述】:

我正在使用react-native-swiper,但是当我实现它时,它被设置为默认高度全屏。 有没有办法让滑动器高度自动调整到幻灯片内容(高度)?

【问题讨论】:

    标签: react-native react-native-swiper


    【解决方案1】:

    我使用 height="100%" 为 Swiper 完成了这项工作

    <Swiper
          loop
          autoplay
          autoplayTimeout={5}
          height='100%'
    >
    </Swiper>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-16
      • 1970-01-01
      相关资源
      最近更新 更多