GIF图像没有在反应本机中显示动画
答
就像其他资产图像:
<Image
source={require('./images/loading.gif')}
style={{height: 200, width: 200}}
resizeMode='contain'
/>
答
使用此,
<Image
style={styles.gif}
source={{uri: 'http://38.media.tumblr.com/9e9bd08c6e2d10561dd1fb4197df4c4e/tumblr_mfqekpMktw1rn90umo1_500.gif'}}
/>
确保添加下面的依赖,
compile 'com.facebook.fresco:animated-base-support:0.14.1'
compile 'com.facebook.fresco:animated-gif:0.14.1'
有关更多详细信息,请参阅此处, *问题。
您忘记了发布您的代码。请添加它 – rakwaht
所以图像显示但不移动? – rakwaht