反应原生gif没有显示

时间:2016-07-04 20:39:33

标签: android react-native

我正在尝试在我的android react-native项目中显示一个gif,但它似乎无法正常工作

我全班都是

import React, { Component } from 'react';

import {   样式表   文本,   图片,   TextInput之   TouchableHighlight,   DrawerLayoutAndroid,   滚动型,   视图 来自'react-native';

class Animation扩展了React.Component {     render(){

return(
    <View>
 <Image source={require('../assets/loading.gif')} />
    </View>
    )
}
}

 const styles = StyleSheet.create({ 
});

module.exports = Animation;

当我将gif更改为同一文件中的png时,它完美地运行,因此路径没有任何问题。

要明确我没有收到错误,只是没有显示

0 个答案:

没有答案
相关问题