import * as React from "react"; import { SectionList as RNSectionList, type SectionListProps as RNSectionListProps, } from "react-native"; import { createSyncedTabScrollComponent } from "../factory/createSyncedTabScrollComponent"; export interface TabSectionListProps< ItemT, SectionT = Record, > extends Omit, "windowSize"> { index: number; width?: number; } type InternalTabSectionListProps< ItemT, SectionT = Record, > = TabSectionListProps & { windowSize?: RNSectionListProps["windowSize"]; }; const InternalTabSectionList = createSyncedTabScrollComponent< RNSectionListProps >(RNSectionList as unknown as React.ComponentType); const TabSectionList = >( props: TabSectionListProps, ) => { const { windowSize: _windowSize, ...rest } = props as InternalTabSectionListProps; return ; }; export default TabSectionList;