react-native-flash-section-list
Version:
SectionList for React Native using FlashList
19 lines (18 loc) • 665 B
TypeScript
import React from "react";
import { TextStyle, ViewStyle } from "react-native";
export interface SectionIndexData {
char: string;
actualIndex: number;
}
interface SectionIndexProps {
dark?: boolean;
barContainerStyle?: ViewStyle;
barStyle?: ViewStyle;
textStyle?: TextStyle;
data: SectionIndexData[];
fontSize?: number;
getLabel?: (data: SectionIndexData) => string;
onPressIndex?: (data: SectionIndexData, index: number) => void;
}
export default function SectionIndex({ dark, barContainerStyle, barStyle, textStyle, data, fontSize: propFontSize, getLabel, onPressIndex, }: SectionIndexProps): React.JSX.Element;
export {};