【发布时间】:2020-07-06 18:09:06
【问题描述】:
我试图在 React Native 的文本框 (TextInput) 中粘贴一个链接,但它没有显示链接中的图像。我不确定我的错误在哪里。请有人帮助我,我真的很感激。提前谢谢!!!!!!!!!
这是代码
const tryImage = "https://images.app.goo.gl/heFUyytHySGiSMeY8"
<View style={styles.info}>
<Image source={one} style={styles.progress}/>
<Text style={styles.title}>Add Photo</Text>
<Image source={{uri: tryImage}} style={styles.icon}/>
</View>
icon:{
width: 180,
height: 180,
marginTop: 50,
},
【问题讨论】:
标签: javascript reactjs react-native react-native-elements react-native-image