mirror of
https://github.com/zhigang1992/react-native-super-grid.git
synced 2026-01-12 17:42:52 +08:00
Add additional props info to the Readme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user