add types for `desktopFixedHeight` to `List` (#4356)

* add types for `desktopFixedHeight`

* nit

* accept both `number` and `boolean`
zio/stable
Hailey 2024-06-05 09:03:40 -07:00 committed by GitHub
parent 22858192dc
commit af2aaa1f39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ export type ListProps<ItemT> = Omit<
onRefresh?: () => void
onItemSeen?: (item: ItemT) => void
containWeb?: boolean
desktopFixedHeight?: number | boolean
sideBorders?: boolean
// Web only prop to disable a perf optimization (which would otherwise be on).
disableContentVisibility?: boolean

View File

@ -22,7 +22,7 @@ export type ListProps<ItemT> = Omit<
refreshing?: boolean
onRefresh?: () => void
onItemSeen?: (item: ItemT) => void
desktopFixedHeight: any // TODO: Better types.
desktopFixedHeight?: number | boolean
containWeb?: boolean
sideBorders?: boolean
disableContentVisibility?: boolean