
[英]React Native Firebase - How to retrieve images from firebase storage and display in Image component?
[英]How to display clear image from Firebase Storage in React Native?
当前代码
<View style={styles.img}>
<Image source={{ uri: url_of_firebase_storage }} style={styles.photo} />
</View>
const styles = StyleSheet.create({
img: {
alignItems: 'center',
},
photo: {
height: '100%',
width: '100%',
}
});
使用此代码,它会显示照片。
但是这张照片不是很清楚。
如果您能告诉我如何在 React Native 中显示清晰的照片,我将不胜感激。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.