Skip to content

Commit cb34bd9

Browse files
authored
README: escape pipe char
1 parent 0937df8 commit cb34bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ All props are spread onto underlying [FlatList](https://facebook.github.io/react
3838
| :------------------------- | :---------------------------------------------------------------------------------------- | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3939
| `data` | `T[]` | Items to be rendered. |
4040
| `ref` | `React.RefObject<FlatList<T>>` | FlatList ref to be forwarded to the underlying FlatList. |
41-
| `renderItem` | `(params: { item: T, getIndex: () => number | undefined, drag: () => void, isActive: boolean}) => JSX.Element` | Call `drag` when the row should become active (i.e. in an `onLongPress` or `onPressIn`). |
41+
| `renderItem` | `(params: { item: T, getIndex: () => number \| undefined, drag: () => void, isActive: boolean}) => JSX.Element` | Call `drag` when the row should become active (i.e. in an `onLongPress` or `onPressIn`). |
4242
| `renderPlaceholder` | `(params: { item: T, index: number }) => React.ReactNode` | Component to be rendered underneath the hovering component |
4343
| `keyExtractor` | `(item: T, index: number) => string` | Unique key for each item |
4444
| `onDragBegin` | `(index: number) => void` | Called when row becomes active. |

0 commit comments

Comments
 (0)