React-native: how to wrap FlatList items

后端 未结 3 1398
情话喂你
情话喂你 2021-01-03 20:56

I have a list of Terms that are returned by a query. Each is a single word. Currently my FlatList renders each word into a button on the same row (horizontal={true}) I would

3条回答
  •  梦谈多话
    2021-01-03 21:20

    You can remove the horizontal prop to achieve the wrapping effect

    ................
    ..................
    
    
            
        }
    />
    .................
    ..............
    

提交回复
热议问题