【发布时间】:2020-12-02 19:17:40
【问题描述】:
如何在 react native snap carousel 中显示以下输出
<Carousel
autoplayInterval={4000}
// slideStyle={{ flex: 1,
// marginRight:10}}
ref={ (c) => { this._carousel = c; } }
data={this.state.featuredBusinessData}
scrollInterpolator={stackScrollInterpolator}
slideInterpolatedStyle={stackAnimatedStyles}
useScrollView={true}
renderItem={this._renderItemFeaturedBusiness.bind(this)}
onSnapToItem={this.handleSnapToItem.bind(this)}
sliderWidth={deviceWidth}
// itemWidth={deviceWidth/2.5 }
itemWidth={deviceWidth/3 }
layout={'default'}
// loopClonesPerSide={this.state.videos.length-1}
firstItem={2}
autoplay={true}
loop={true}
useScrollView={true}
enableMomentum={true}
lockScrollWhileSnapping={false}
/>
由于我是 RN 新手,请任何人告诉我如何在 react native snap carousel 中显示以下输出
【问题讨论】:
-
Please do not use images to show your code。相反,请edit 您的问题包含您在使用formatted text 时遇到问题的代码的minimal reproducible example。
标签: reactjs react-native react-native-android carousel react-native-snap-carousel