我想用keyExtractor更改FlatListİtem。
例如; this.MyFlatlist.keyExtractor [12] .username =“ Emre”
<FlatList
ref={(list) => this.myFlatList = list}
data={this.state.userlist}
renderItem={({item, separators})=>(
<View /><Text>{item.username}</Text></View>
)}
removeClippedSubviews={true}
refreshing={this.state.refreshing}
keyExtractor={(item, index) => item.userID.toString()}
onRefresh={this.handleRefresh}
extraData={this.state}
/>