react-native-autocomplete-input
Advanced tools
Comparing version 3.4.0 to 3.5.0
11
index.js
@@ -121,3 +121,10 @@ import React, { Component } from 'react'; | ||
const { dataSource } = this.state; | ||
const { listStyle, renderItem, renderSeparator, keyboardShouldPersistTaps } = this.props; | ||
const { | ||
listStyle, | ||
renderItem, | ||
renderSeparator, | ||
keyboardShouldPersistTaps, | ||
onEndReached, | ||
onEndReachedThreshold | ||
} = this.props; | ||
@@ -131,2 +138,4 @@ return ( | ||
renderSeparator={renderSeparator} | ||
onEndReached={onEndReached} | ||
onEndReachedThreshold={onEndReachedThreshold} | ||
style={[styles.list, listStyle]} | ||
@@ -133,0 +142,0 @@ /> |
{ | ||
"name": "react-native-autocomplete-input", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "Pure javascript autocomplete input for react-native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -36,5 +36,5 @@ # react-native-autocomplete-input | ||
onChangeText={text => this.setState({ query: text })} | ||
renderItem={data => ( | ||
<TouchableOpacity onPress={() => this.setState({ query: data })}> | ||
<Text>{data}</Text> | ||
renderItem={item => ( | ||
<TouchableOpacity onPress={() => this.setState({ query: item })}> | ||
<Text>{item}</Text> | ||
</TouchableOpacity> | ||
@@ -41,0 +41,0 @@ )} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13080
226