React native text going off my screen, refusing to wrap. What to do?

后端 未结 11 1549
栀梦
栀梦 2020-11-30 18:35

The following code can be found in this live example

I\'ve got the following react native element:

\'use strict\';

var React = require(\'react-nativ         


        
11条回答
  •  一整个雨季
    2020-11-30 19:17

    The solution to that issue is flexShrink: 1.

     
       
           Really really long text...
       
    
    

    Depending on your set up, you may also also need to add flexShrink: 1 to the 's parent as well, to get this to work, so play with that and you'll make it.

    The solution was discovered by Adam Pietrasiak in this thread.

提交回复
热议问题