0.1.1 • Published 6 years ago

flatlist-fast v0.1.1

Weekly downloads
24
License
ISC
Repository
github
Last release
6 years ago

flatlist-fast

Flatlist-fast base on FLatList, so it has all the properties of the FlatList.

FLatlist-fast will render when you scroll to end or 'onEndReachedThreshold'.

Every one rendered, Flatlist-fast will render 'itemOnePage' more element.

If you don't set the 'initialNumToRender' property, Flatlist-fast will render initial item number equal to 'itemOnePage' property

Example

import FlatListFast from 'flatlist-fast';

<FlatListFast
    ref={ref => this.flatList = ref}
    removeClippedSubviews={false}
    showsVerticalScrollIndicator={false}
    showsHorizontalScrollIndicator={false}
    scrollEventThrottle={16}
    getItemLayout={(data, index) => (
        { length: 50, offset: index * 50, index }
    )}
    data={this.state.listData}
    renderItem={({ item, index }) =>
        <Text>
            {`example ${index}: ${item}`}
        </Text>}
    keyExtractor={item => item.id}
    style={styles.container}
    itemOnePage={12}
    initialNumToRender={20}
    onEndReachedThreshold={0.4}
/>
0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago