React-Native wrap文本和显示内的图像
答
你的问题是相当模糊的,但可能它是直线前进,因为这...
<View>
<Text>Some Text</Text>
<Image
style={{width: 50, height: 50}}
source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}}
/>
<Text>Some Text</Text>
<Image
style={{width: 50, height: 50}}
source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}}
/>
<Text>Some Text</Text>
<Image
style={{width: 50, height: 50}}
source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}}
/>
</View>
您还可以,如果你想要的文字是在图像的顶部做到这一点,...
<Image
style={{width: 50, height: 50}}
source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}}
>
<Text>Some Text</Text>
</Image>
+0
谢谢!此外,图像必须内联。问题可以在文本之间有图像 – mak
您的问题太宽泛,也基于观点。我建议你阅读[如何提出一个好问题](https://stackoverflow.com/help/how-to-ask)。 – Kraylog