Skip to content
  • Android
  • iOS
  • Web

List

Render a virtualized list with stable item keys.

Engine API NListnayan-ui/components

Live examples

Example.tsx

Attributes

NList attributes
NameTypeDefaultDetails
datareadonly T[]Optional
renderItem(info: NListRenderItemInfo<T>) => ReactNodeRequired
keyExtractor((item: T, index: number) => string)Optional
heightnumberOptional
itemSizenumberOptionalExact row height in logical points, including any separator.
estimatedItemSizenumberOptionalRust measures row content when itemSize is omitted.
numColumnsnumberOptional
onEndReached((info: { distanceFromEnd: number; }) => void)Optional
onEndReachedThresholdnumberOptionalDistance to the end as a fraction of the viewport height. Default: 0.5.
ListEmptyComponentReactElement<unknown, string | React.JSXElementConstructor<any>> | ComponentType | nullOptional
onRefresh(() => void)Optional
refreshingbooleanOptional
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.

Tags