Simulate display: inline in React Native

前端 未结 4 1994
孤街浪徒
孤街浪徒 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条回答
  •  不知归路
    2020-12-13 08:47

    You can only nest text nodes without using flex to get the desired effect. Like this: https://facebook.github.io/react-native/docs/text

    
      I am bold
      
        and red
      
    
    

提交回复
热议问题