Skip to content

V4.0.0

Compare
Choose a tag to compare
@Javier-Rotelli Javier-Rotelli released this 09 Apr 19:05
bd15b9d

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>
    )}