UNPKG

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.

35 lines (34 loc) 854 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.styles = void 0; const react_native_1 = require("react-native"); const sizes = { containerWidth: 10, itemHeight: 15, itemFontSize: 10, }; exports.styles = react_native_1.StyleSheet.create({ letterIndexContainer: { width: sizes.containerWidth, height: "100%", position: "absolute", top: 0, right: 0, }, letterIndexList: { alignItems: "center", justifyContent: "center", height: "100%", }, letterIndexItem: { width: sizes.containerWidth, height: sizes.itemHeight, alignItems: "center", justifyContent: "center", }, letterIndexLabel: { fontSize: sizes.itemFontSize, fontWeight: "bold", color: "grey", }, });