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

后端 未结 11 1587
栀梦
栀梦 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:32

    I wanted to add that I was having the same issue and flexWrap, flex:1 (in the text components), nothing flex was working for me.

    Eventually, I set the width of my text components' wrapper to the width of the device and the text started wrapping. const win = Dimensions.get('window');

          
            {image.title}
            {image.description}
          
    

提交回复
热议问题