如何在垂直方向实现 snap carousel?
How can I implement snap carousel in Vertical direction?
我需要创建 List 但使用的是 snap carousel 组件。但是我做不到。
只需将道具添加到 carousel
作为 vertical
。
可以参考https://github.com/archriss/react-native-snap-carousel
要使用垂直道具,请在此处找到 https://github.com/archriss/react-native-snap-carousel/blob/master/src/carousel/Carousel.js
使用 vertical prop 实现垂直 direction.However 使用 vertical prop 时必须指定 itemHeight 和 sliderHeight。
我需要创建 List 但使用的是 snap carousel 组件。但是我做不到。
只需将道具添加到 carousel
作为 vertical
。
可以参考https://github.com/archriss/react-native-snap-carousel
要使用垂直道具,请在此处找到 https://github.com/archriss/react-native-snap-carousel/blob/master/src/carousel/Carousel.js
使用 vertical prop 实现垂直 direction.However 使用 vertical prop 时必须指定 itemHeight 和 sliderHeight。