Skip to content

Releases: byteburgers/react-native-autocomplete-input

v5.1.0

05 Apr 07:39
Compare
Choose a tag to compare

Adds prop to render the result list (renderResultList )

v5.0.2

11 Jul 15:22
Compare
Choose a tag to compare
  • Remove keyboardShouldPersistTaps from properties as it has to be supplied through the flatListProps

v5.0.1

08 Jul 08:57
Compare
Choose a tag to compare

Fix typo in keyboardShouldPersistTaps props

v5.0.0

06 Apr 13:16
Compare
Choose a tag to compare
  • 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

23 May 13:57
Compare
Choose a tag to compare
  • Removes internal stage
  • Removes usage of deprecated lifecycle method

Remove data from state

21 Aug 09:51
Compare
Choose a tag to compare
Pre-release

Remove data from state because componentWillReceiveProps Is deprecated.

V4.0.0

09 Apr 19:05
bd15b9d
Compare
Choose a tag to compare

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

04 Oct 19:09
Compare
Choose a tag to compare

Use prop-types package (React.PropTypes has been deprecated). Thx to @peacechen.

v3.3.0

07 Jun 21:31
Compare
Choose a tag to compare
  • Support passing keyboardShouldPersistTaps prop to support RN <= 0.39
  • Intercept touch with onStartShouldSetResponderCapture on the result list container.

Add prop to style list container

26 Feb 19:52
Compare
Choose a tag to compare
  • #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!