I am trying to random the posts like this
i had tried like this also
<FlatList
data={this.state.posts[Math.floor(Math.random() *
this.state.posts.length)]}
// numColumns={1}
horizontal={false}
keyExtractor={(elem, index) => elem.id}
renderItem={(elem)=>(
<PostListItem style={{ marginTop: 10, width: "100%" }}
title={elem.item.tieude}
description={elem.item.mota}
image={{uri:`${elem.item.imgUrl}`}}
/>
)}/>
but no work! Please help me!