react-native-section-alphabet-list
Version:
A simple React Native component that takes an array of data and renders a SectionList with alphabetically sorted data.
11 lines (10 loc) • 563 B
TypeScript
import { AlphabetListProps, ISectionData } from "../AlphabetList/types";
export interface ListLetterIndexProps {
onPressLetter: (sectionIndex: number) => void;
sectionData: ISectionData[];
indexContainerStyle?: AlphabetListProps["indexContainerStyle"];
indexLetterStyle?: AlphabetListProps["indexLetterStyle"];
indexLetterContainerStyle?: AlphabetListProps["indexLetterContainerStyle"];
renderCustomIndexLetter?: AlphabetListProps["renderCustomIndexLetter"];
letterListContainerStyle?: AlphabetListProps["letterListContainerStyle"];
}