我正在使用本机反应进行开发,目前在Android独立版本中面临gif支持的问题

时间:2018-10-25 05:29:40

标签: android react-native expo fresco

我在堆栈溢出和GitHub中看到了很多答案,但似乎没有一个令人满意。也许我做错了。请指定我:

在我的android / app / build.gradle中:

   implementation 'com.facebook.fresco:fresco:1.0.1' 
    implementation 'com.facebook.fresco:animated-gif:1.0.1'
    implementation 'com.facebook.fresco:animated-base-support:1.0.1'

我正在使用react native版本: 从我的包中。JSON

"dependencies": {
    "expo": "^27.0.1",
    "firebase": "^5.0.3",
    "react": "16.3.1",
    "react-native": "~0.55.2",
    "react-native-animatable": "^1.3.0",
    "react-native-google-signin": "^0.10.0",
    "react-native-indicators": "^0.13.0",
    "react-navigation": "^2.17.0"

请指定我在哪里,我在我的应用程序中也使用了壁画1.3版,但仍然无法正常工作。

更新:添加图像标记代码

<Image
source = {require('../Assets/Images/empty_cart.gif')}
resizeMode = 'contain'
style = {{flex:0.5,width:Dimensions.get('window').width,alignSelf: "center"}}/>

0 个答案:

没有答案