react-native-pagination
react-native-pagination copied to clipboard
this.probs.listRef.scrolltoEnd not a function
while adding react-native-pagination in react-native-swipe-list-view it shows the below eror.
my code is
render() {
return (
<View style={styles.container}>
{this.state.listType === 'FlatList' &&
<React.Fragment>
<SwipeListView
useFlatList
data={this.state.listViewData}
renderItem={ (data, rowMap) => (
<View>
<Text>I am {data.item.text} in a SwipeListView</Text>
</View>
)}
leftOpenValue={75}
rightOpenValue={-150}
previewRowKey={'0'}
previewOpenValue={-40}
previewOpenDelay={3000}
onRowDidOpen={this.onRowDidOpen}
onSwipeValueChange={this.onSwipeValueChange}
ref={r=>this.refs=r}
keyExtractor={(item, index) => index.toString()}
onViewableItemsChanged={this.onViewableItemsChanged}
viewabilityConfig={this.viewabilityConfig}
/>
<Pagination
debugMode
dotIconNameActive="contacts"
dotTextColor="red"
dotSwapAxis
dotPositionSwap
dotTextColorActive="green"
dotTextColorNotActive="red"
dotTextColorEmpty="#4b5258"
dotIconColorActive="green"
dotIconColorNotActive="red"
dotIconColorEmpty="#4b5258"
dot={Size=12}
paginationStyle={{ alignItems:"flex-end", justifyContent: 'space-between', position:"absolute", margin:0, bottom:150, left:0, right:0, padding:0, flex:1,height:300,}}
listRef={this.refs}
paginationVisibleItems={this.state.viewableItems}
paginationItems={this.state.dreamTitle}
paginationItemPadSize={3}
/>
</React.Fragment>
}