All Projects → ayushnawani → react-native-alphabetflatlist

ayushnawani / react-native-alphabetflatlist

Licence: MIT license
A Flatlist with alphabet sidebar.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-alphabetflatlist

React Native Largelist
The best large list component for React Native.
Stars: ✭ 2,153 (+5718.92%)
Mutual labels:  flatlist
react-native-swipe-list
Swipeable FlatList Component for react-native
Stars: ✭ 22 (-40.54%)
Mutual labels:  flatlist
RNApp
react native app
Stars: ✭ 43 (+16.22%)
Mutual labels:  flatlist
react-native-bidirectional-infinite-scroll
📜 React Native - Bidirectional Infinite Smooth Scroll
Stars: ✭ 137 (+270.27%)
Mutual labels:  flatlist
react-native-dual
ScrollView, FlatList, SectionList and ListView with dual background
Stars: ✭ 28 (-24.32%)
Mutual labels:  flatlist
react-native-pullview
scrollview&&FlatList Pull refresh and loadmore
Stars: ✭ 26 (-29.73%)
Mutual labels:  flatlist
react-native-timeline-feed
Customisable timeline for react native (using FlatList). Docs: https://johan-dutoit.github.io/react-native-timeline-feed/
Stars: ✭ 43 (+16.22%)
Mutual labels:  flatlist
react-native-animated-flatlist
Animated Flatlist for React-Native
Stars: ✭ 56 (+51.35%)
Mutual labels:  flatlist
react-native-invertible-flatlist
[DEPRECATED] A FlatList that can be flipped.
Stars: ✭ 17 (-54.05%)
Mutual labels:  flatlist

react-native-alphabetflatlist

A Flatlist with alphabet sidebar.

Usage

    import AlphabetFlatList from 'react-native-flatlist'

    /* inside your render function */
    <AlphabetFlatList
        renderItem={this.renderItem}
        data={names}
        getItemLayout={this.getItemLayout}
        />

Example

Please check the example folder.

Props

You can use all the props provided by FlatList.

Name Type Default Required Description
data array YES Expects array of strings. If you are passing array of objects then also use matchFieldName prop.
renderItem function YES
keyExtractor function (item, index) => index.toString()
viewabilityConfig object { itemVisiblePercentThreshold: 50 }
getItemLayout function YES
mainFlatListContainerStyle object {}
alphabetListProps object {
 alphabetListContainerStyle: {},
 alphabetButtonStyle: {},
 selectedAlphabetButtonStyle: {},
 alphabetTextStyle: {},
 selectedAlphabetTextStyle: {}
}
matchFieldName string false If data array contains object then pass a field name whose value you want to show on main list. See Issue #2.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].