react-native-flatlist-alphabet
Version:
A simple React Native component that takes an array of data and renders a SectionList with alphabetically sorted data.
21 lines (20 loc) • 731 B
TypeScript
import * as React from "react";
import { SectionList } from "react-native";
import ISectionData from "./interfaces/ISectionData";
import IAlphabetListProps from "./interfaces/IAlphabetListProps";
export default class AlphabetList extends React.PureComponent<IAlphabetListProps> {
state: {
sectionData: ISectionData[];
};
sectionList: SectionList;
onGetItemLayout: any;
constructor(props: IAlphabetListProps);
componentDidMount(): void;
componentDidUpdate(prevProps: IAlphabetListProps): void;
private setSectionData;
private onScrollToSection;
private onSetSectionListRef;
private onRenderItem;
private onRenderSectionHeader;
render(): JSX.Element;
}