1.1.5 • Published 5 years ago

react-native-letter-list v1.1.5

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
5 years ago

react-native-letter-list

A list of content sorted by letter

Install

npm i -S react-native-letter-list

Usage

import LetterList from 'react-native-letter-list';

...
outputCityInfo(cityInfo) {
  // You Code
}

...
<!-- jsx -->
<LetterList
  list={array}                    // section list
  onSelect={(item) => {}}         // select callback

  // These properties are optional
  showSearch = {boolean},         // default: false
  placeholder = {string},         // default: Enter keywords to search
  letterName = {string},          // default: letter         show to in section header
  titleHeight = {number},         // default: 36             section header
  childListName = {string},       // default: childList      section list name
  childTextName = {string},       // default: name           item content
  itemHeight = {number}           // default: 44,            item height
  emptyText = {string}            // default: No Data        display when the list is empty

></LetterList>

List Sample

[
  {
    letter: 'B',
    childList: [{
      name: '北京',
      id: '0001'
    }, {
      ...
    }]
  }, {
    ...
  }
]
1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago