pavlelekic / react-native-gridview

A React Native component that renders a grid of items. It uses ListView under the hood.
MIT License
17 stars 4 forks source link

Any ideas how to have the grid flex vertically #2

Closed therealchuckliu closed 7 years ago

therealchuckliu commented 7 years ago

This library's been really great and easy to use, however there is one issue I'm trying to resolve. Since the Grid's flexDirection's been changed to row you can't have the list view take up the whole screen with flex: 1. If for example the datasource has no elements and you want to be able to refresh the list there's nothing to pull down because of this. Any ideas how to resolve it?

therealchuckliu commented 7 years ago

It seems adding a flex:1 to the parent view of the list view in your code did the trick, don't know of any side effects though haven't tested that much