【问题标题】:How can I get Text Around Image in react native?如何在本机反应中获得文本周围的图像?
【发布时间】:2021-07-13 16:50:50
【问题描述】:
<View style={{flexDirection: 'row'}}>
    <Text style={{textAlign: 'justify'}}>
        Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in
        laying out print, graphic or web designs. The passage is attributed to
        an unknown typesetter in the 15th century who is thought to have
        scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a
        type specimen book.
    </Text>
    <Image
        source={{
            uri: item.url,
        }}
        style={{
            height: 180,
            width: 180,
        }}
    />
</View>

【问题讨论】:

标签: react-native


【解决方案1】:

<Text style={{flex: 1}}>
  <Image source={Images.IconExplore} style={{ width: 16, height: 16 }} />
  <Text> Check in this type.</Text>
</Text>

【讨论】:

猜你喜欢
  • 2017-01-23
  • 1970-01-01
  • 1970-01-01
  • 2018-08-21
  • 2021-05-24
  • 1970-01-01
  • 2019-05-05
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多