import { styled } from "nativewind"; import type { ComponentType, ReactNode } from "react"; import { SectionList as RNSectionList, type SectionListProps as RNSectionListProps, type StyleProp, type ViewStyle, } from "react-native"; type DefaultSectionT = Record; export type SectionListProps< ItemT, SectionT = DefaultSectionT, > = RNSectionListProps; interface StyledSectionListProps { style?: StyleProp; contentContainerStyle?: StyleProp; } export const SectionList = styled( RNSectionList as unknown as ComponentType, { className: "style", contentContainerClassName: "contentContainerStyle", }, ) as ( props: SectionListProps, ) => ReactNode;