Releases: byteburgers/react-native-autocomplete-input
Releases · byteburgers/react-native-autocomplete-input
v5.1.0
v5.0.2
v5.0.1
v5.0.0
- Refactored from class component to functional component
- Removes code dependencies to old react-native versions
- Examples moved to https://snack.expo.io/
v4.2.0
Remove data from state
Remove data from state because componentWillReceiveProps
Is deprecated.
V4.0.0
Migrate to Flatlist
Breaking Change:
with the migration the signature for renderItem function changed from:
//Before
renderItem: (item) => React.Node
//Now
renderItem: ({item, index}) => React.Node
renderItem={(item) => (
<TouchableOpacity onPress={() => this.setState({ query: item })}>
<Text>{item}</Text>
</TouchableOpacity>
)}
to:
renderItem={({ item, i }) => (
<TouchableOpacity onPress={() => this.setState({ query: item })}>
<Text>{item}</Text>
</TouchableOpacity>
)}
PropTypes
Use prop-types package (React.PropTypes has been deprecated). Thx to @peacechen.
v3.3.0
Add prop to style list container
- #30 will allow styling of the list container. Helpful if you have multiple autocompletes where you need to set the z-index. Thx to @evansiroky!