Skip to content

xinlc/react-native-index-list

Repository files navigation

react-native-index-list

npm package npm downloads

A Listview with a sidebar to directly jump to sections.

Example

Installation

$ npm install --save react-native-index-list

Usage

See the example

Customized

import { SelectableSectionsListView } from 'react-native-index-list';

...
  render() {
    return (
      <SelectableSectionsListView
        data={this.state.data}
        cell={Cell}
        sectionHeader={SectionHeader}
        sectionListItem={SectionListItem}
        sectionListStyle={styles.sectionListStyle}
        cellProps={{ pressCell: this._pressCell, selected: this.state.selected }}
        cellHeight={45}
        sectionHeaderHeight={30}
        initialListSize={100}
        useDynamicHeights
        enableEmptySections
      />
    );
  }
...

More available SelectableSectionsListView API can be found at readme

About

A Listview with a sidebar to directly jump to sections.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published