From af2aaa1f39137c7e1e4926efaa6540942f607cf4 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 5 Jun 2024 09:03:40 -0700 Subject: add types for `desktopFixedHeight` to `List` (#4356) * add types for `desktopFixedHeight` * nit * accept both `number` and `boolean` --- src/view/com/util/List.tsx | 1 + src/view/com/util/List.web.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/view/com/util/List.tsx b/src/view/com/util/List.tsx index 22d094912..ed43ed5f0 100644 --- a/src/view/com/util/List.tsx +++ b/src/view/com/util/List.tsx @@ -25,6 +25,7 @@ export type ListProps = 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 diff --git a/src/view/com/util/List.web.tsx b/src/view/com/util/List.web.tsx index d4bd1b003..6b0c17762 100644 --- a/src/view/com/util/List.web.tsx +++ b/src/view/com/util/List.web.tsx @@ -22,7 +22,7 @@ export type ListProps = Omit< refreshing?: boolean onRefresh?: () => void onItemSeen?: (item: ItemT) => void - desktopFixedHeight: any // TODO: Better types. + desktopFixedHeight?: number | boolean containWeb?: boolean sideBorders?: boolean disableContentVisibility?: boolean -- cgit 1.4.1