如何在一行中显示所有文本元素,如图像的第一行所示。
<Thumbnail square source={{ uri: some uri }} />
<Text>Butter</Text>
<TextInput
placeholder="-"
keyboardType='number-pad'
/>
<Text>Kg</Text>
答案 0 :(得分:1)
尝试:
<Thumbnail square source={{ uri: some uri }} />
<View style={{flexDirection:'row}} >
<Text>Butter</Text>
<TextInput
placeholder="-"
keyboardType='number-pad'
/>
<Text>Kg</Text>
</View>