mirror of
https://github.com/zhigang1992/react-native-gifted-chat.git
synced 2026-01-12 17:42:27 +08:00
Error in FlatList with latest react-native version
`keyExtractor` in `FlatList` must now return a string: https://facebook.github.io/react-native/docs/flatlist#keyextractor
This commit is contained in:
@@ -124,7 +124,7 @@ export default class MessageContainer extends React.PureComponent {
|
||||
<View style={styles.container}>
|
||||
<FlatList
|
||||
ref={(ref) => (this.flatListRef = ref)}
|
||||
keyExtractor={(item) => item._id}
|
||||
keyExtractor={(item) => `${item._id}`}
|
||||
enableEmptySections
|
||||
automaticallyAdjustContentInsets={false}
|
||||
inverted={this.props.inverted}
|
||||
|
||||
Reference in New Issue
Block a user