Simulate display: inline in React Native

前端 未结 4 1993
孤街浪徒
孤街浪徒 2020-12-13 08:37

React Native doesn\'t support the CSS display property, and by default all elements use the behavior of display: flex (no inline-flex

4条回答
  •  猫巷女王i
    2020-12-13 08:54

    I haven't found a proper way to inline text blocks with other content. Our current "hackish" workaround is to split every single word in a text string into its own block so flexWrap wraps properly for each word.

提交回复
热议问题