只需要在android/app/build.gradle 中的dependencies中添加
// For animated GIF support compile 'com.facebook.fresco:animated-gif:0.13.0'
然后用<Image source={require(‘./image.gif’)} ></Image> 使用该gif图就可以了。
只需要在android/app/build.gradle 中的dependencies中添加
// For animated GIF support compile 'com.facebook.fresco:animated-gif:0.13.0'
然后用<Image source={require(‘./image.gif’)} ></Image> 使用该gif图就可以了。