import type { ReactNode } from "react"; import { SectionList, type SectionListProps } from "../primitives/SectionList"; import { type ScreenSafeAreaProps, useScreenContainerProps, } from "./useScreenContainerProps"; export interface ScreenSectionListProps extends SectionListProps, ScreenSafeAreaProps {} /** A `SectionList` filling the screen, with safe-area insets as content padding. */ export function ScreenSectionList({ className, contentContainerClassName, contentContainerStyle, edges, ...props }: ScreenSectionListProps): ReactNode { const containerProps = useScreenContainerProps({ className, contentContainerClassName, contentContainerStyle, edges, }); return {...containerProps} {...props} />; }