Skip to content

Commit

Permalink
RN expects a string, not a number for keyExtractor
Browse files Browse the repository at this point in the history
Same issue as here: wonday/react-native-pdf#125
  • Loading branch information
vpicone authored Jun 13, 2018
1 parent 1e1065c commit a5cd16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class FetchExample extends React.Component {
<FlatList
data={this.state.dataSource}
renderItem={({item}) => <Text>{item.title}, {item.releaseYear}</Text>}
keyExtractor={(item, index) => index}
keyExtractor={(item, index) => index.toString()}
/>
</View>
);
Expand Down

0 comments on commit a5cd16f

Please sign in to comment.