Add additional props info to the Readme

This commit is contained in:
Saleel S
2019-01-20 01:08:58 +04:00
parent a552f366ca
commit 6fc1414553

View File

@@ -86,7 +86,7 @@ import { SectionGrid } from 'react-native-super-grid';
| horizontal | boolean | false | If true, the grid will be scrolling horizontally. If you want your item to fill the height when using a horizontal grid, you should give it a height of '100%'. This prop doesn't affect the SectionGrid, which only scrolls vertically. |
| onLayout | Function | | Optional callback ran by the internal `FlatList` or `SectionList`'s `onLayout` function, thus invoked on mount and layout changes. |
All additional props you pass will be passed on to the internal FlatList/SectionList. This means you can make use of various props and methods like `ListHeaderComponent`, `onEndReached`, `onRefresh`...etc. While these are not tested for compatibility, most of them should work as expected.
## FlatGrid Example
```javascript