Skip to content

Commit b552885

Browse files
authored
Update SwipeListView.md
1 parent c945dba commit b552885

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/SwipeListView.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ A List that renders `<SwipeRow />`s
88
| Prop | Notes | Type | Signature (func) | Default |
99
|---|---|---|---|---|
1010
| `data` | List of objects to be passed into the `renderItem` and `renderHiddenItem` functions. Each item must include a unique `key` property or `keyExtractor` must be implemented to ensure full functionality. | `array` ||
11-
| `keyExtractor` | Function to generate `key` value for each row in the list. | `func` |`(item, index) => {}`|
1211
| `useSectionList` | Render list using React Native's `SectionList` | `bool` || `false`
1312
| `renderItem` | How to render a row in a FlatList. Should return a valid React Element. | `func` | `{ rowData: any, rowMap: { string: SwipeRowRef } } : ReactElement`
1413
| `renderHiddenItem` | How to render a hidden row in a FlatList (renders behind the row). Should return a valid React Element. This is required unless `renderItem` returns a `<SwipeRow>` (see [Per Row Behavior](https://github.com/jemise111/react-native-swipe-list-view/blob/master/docs/per-row-behavior.md)). | `func` | `{ rowData: any, rowMap: { string: SwipeRowRef } } : ReactElement`
@@ -51,3 +50,6 @@ A List that renders `<SwipeRow />`s
5150
| `previewRowIndex` [DEPRECATED] | Should the specified rowId do a slide out preview to show that the list is swipeable. ***Note***: This ID will be passed to this function to get the correct row index. https://facebook.github.io/react-native/docs/listviewdatasource.html#getrowidforflatindex | `number`
5251
| `shouldItemUpdate` | Callback to determine whether component should update | `func` | `{ currentItem: any, newItem: any }`
5352
| `useNativeDriver` | useNativeDriver: `true` for all animations | `bool` | `true` |
53+
54+
55+
See [FlatList](https://reactnative.dev/docs/flatlist) for all other inherited props

0 commit comments

Comments
 (0)