如何解决react-native-snap-carousel中的眨眼图像?

时间:2019-11-27 06:34:10

标签: react-native react-native-snap-carousel

当返回本机快照轮播中的第一项时,如何解决眨眼图像?我尝试寻找许多示例,但全部失败。

这是我的脚本:

renderSlider ({item, index}) {
    return (
          <View style={styles.slide}>
            <Image source={{uri: item.cover}} style={styles.imageSlider} />
          </View>
    );
}

<Carousel
    ref={(c) => { this._slider1Ref = c; }}
    data={data}
    renderItem={this.renderSlider}
    sliderWidth={width}
    itemWidth={(width - 30)}
    itemWidth={(width - 30)}
    inactiveSlideScale={0.96}
    inactiveSlideOpacity={1}
    firstItem={0}
    enableMomentum={false}
    lockScrollWhileSnapping={false}
    loop={true}
    loopClonesPerSide={100}
    autoplay={true}
    activeSlideOffset={50}
/>

您可以找到here的comple文档,而您可以找到here的有关插件api。

请任何人帮助我。

谢谢。

1 个答案:

答案 0 :(得分:0)

如果遇到闪烁的问题,请使用React Native Fast Image

相关问题