RNのバージョンを設定していないときは表示されませ。これを行う方法。【RN】画像は、幅または高さ
<View style={styles.container}>
<Image style={styles.image} source={{uri : 'https://www.baidu.com/img/bd_logo1.png'}}>
</Image>
</View>
const styles = StyleSheet.create({
container: {
flex: 1
},
image: {
flex: 1,
resizeMode: 'contain'
},
});
'画像試し:{フレックス:1、幅:ヌル、高さ:ヌル}'スタイルのために。 – zvona