Closed paraswatts closed 7 years ago
Problem solved. My item height was getting undefined thats why data was displayed in only one column.
What to do in a case dynamic height of item?
In my case also height of the components is dynamic. I have images, videos, blogs and articles in my list. I passed 300 to the prop getHeightForItem and it worked. Some of the items have height greater than 300, but it is working.
@paraswatts how did you manage to load the videos in your app
I am using this library in one of my projects. Earlier I was using flatlist. I am displaying data in 2 columns. But when I use this library data is only display in one column.
`
`renderRowItem = (itemData) => {
This is stylesheet content for above components
image: { height: 200, width: 150, resizeMode: 'cover', borderTopLeftRadius: 3, borderTopRightRadius: 3, }, video: { height: 200, width: 150, borderTopLeftRadius: 3, borderTopRightRadius: 3, }, audio: { height: 200, width: 150, borderTopLeftRadius: 3, borderTopRightRadius: 3, }, row: {