add types for desktopFixedHeight to List (#4356)

* add types for `desktopFixedHeight`

* nit

* accept both `number` and `boolean`
This commit is contained in:
Hailey
2024-06-05 09:03:40 -07:00
committed by GitHub
parent 22858192dc
commit af2aaa1f39
2 changed files with 2 additions and 1 deletions
+1
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
+1 -1
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