React Native: “Auto” width for text node

后端 未结 1 1157
深忆病人
深忆病人 2021-02-12 04:47

I have a text element inside a view:

hello world foo bar

as part of a flex grid.

I want th

相关标签:
1条回答
  • 2021-02-12 05:16

    You can achieve this if element will have alignSelf property, like:

    alignSelf: 'flex-start'
    

    or

    alignSelf: 'center'
    
    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题