如何在图像上传按钮上使用React Native拥有图像?
这是我当前的代码,我想拥有一个图像的按钮,您可以在其中上传袜子竞赛的设计。有什么想法吗?
<TouchableOpacity onPress={pickImage}>
<Image source={{uri: image}} source={designIcon} style={styles.thumbnail}/>
</TouchableOpacity>
This is my current code and I want to have a button that's an image, where you can upload a design for a socks competition. Any Ideas?
<TouchableOpacity onPress={pickImage}>
<Image source={{uri: image}} source={designIcon} style={styles.thumbnail}/>
</TouchableOpacity>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您会在本地还是从互联网拍摄照片?如果在当地,
或从URL,
注意:
1-)缩略图样式应具有高度
2-)如果您本地的图像应为:fenesion = require('imagepath/img.png')
Will you take the picture locally or from the internet? If locally,
or from URL,
Note:
1-) thumbnail style should has height
2-) If image in your locally, designIcon should be : designIcon = require('imagepath/img.png')