From cb34bd94a2ba3726343a80e265d08cd78e08eb8a Mon Sep 17 00:00:00 2001 From: Daniel Merrill Date: Sun, 24 Jul 2022 19:51:31 -0700 Subject: [PATCH] README: escape pipe char --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9280099..a411f79 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ All props are spread onto underlying [FlatList](https://facebook.github.io/react | :------------------------- | :---------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | `data` | `T[]` | Items to be rendered. | | `ref` | `React.RefObject>` | FlatList ref to be forwarded to the underlying FlatList. | -| `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`). | +| `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`). | | `renderPlaceholder` | `(params: { item: T, index: number }) => React.ReactNode` | Component to be rendered underneath the hovering component | | `keyExtractor` | `(item: T, index: number) => string` | Unique key for each item | | `onDragBegin` | `(index: number) => void` | Called when row becomes active. |