小编Dib*_*der的帖子

内嵌文本的 React-native 图标

你好我想实现以下风格:

在此输入图像描述

但通过以下代码,我在单独的列中得到图标,在另一列中得到文本

<View style={{flex:1, flexDirection:'row'}}>
  <Icon height={10} width={10} />
  <Text>It is a long established fact that a reader will be distracted by the readable 
    content of a page when looking at its layout. The point of using Lorem Ipsum is that it 
    has a more-or-less normal distribution of letters, as opposed to using 'Content here, 
    content here'
</Text>
</View>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

请忽略不同的图标。有什么办法解决这个问题吗?

android ios react-native react-native-text react-native-svg

4
推荐指数
1
解决办法
3775
查看次数