add types for `desktopFixedHeight` to `List` (#4356)
* add types for `desktopFixedHeight` * nit * accept both `number` and `boolean`zio/stable
parent
22858192dc
commit
af2aaa1f39
|
@ -25,6 +25,7 @@ export type ListProps<ItemT> = Omit<
|
||||||
onRefresh?: () => void
|
onRefresh?: () => void
|
||||||
onItemSeen?: (item: ItemT) => void
|
onItemSeen?: (item: ItemT) => void
|
||||||
containWeb?: boolean
|
containWeb?: boolean
|
||||||
|
desktopFixedHeight?: number | boolean
|
||||||
sideBorders?: boolean
|
sideBorders?: boolean
|
||||||
// Web only prop to disable a perf optimization (which would otherwise be on).
|
// Web only prop to disable a perf optimization (which would otherwise be on).
|
||||||
disableContentVisibility?: boolean
|
disableContentVisibility?: boolean
|
||||||
|
|
|
@ -22,7 +22,7 @@ export type ListProps<ItemT> = Omit<
|
||||||
refreshing?: boolean
|
refreshing?: boolean
|
||||||
onRefresh?: () => void
|
onRefresh?: () => void
|
||||||
onItemSeen?: (item: ItemT) => void
|
onItemSeen?: (item: ItemT) => void
|
||||||
desktopFixedHeight: any // TODO: Better types.
|
desktopFixedHeight?: number | boolean
|
||||||
containWeb?: boolean
|
containWeb?: boolean
|
||||||
sideBorders?: boolean
|
sideBorders?: boolean
|
||||||
disableContentVisibility?: boolean
|
disableContentVisibility?: boolean
|
||||||
|
|
Loading…
Reference in New Issue