renderItem={(dataItem, index) => (
<Animated animationIn="fadeIn" animationOut="fadeOut" isVisible={true}>
<div>
<img src={dataItem.icon} style={{height: '100%', width: '100%'}} alt={"empty"}/>
</div>
</Animated>
)}
更改图像src时,我想先将isVisible设置为false,然后立即将其设置为true,该怎么办?