I updgraded from react 16.2 -> 16.3-alpha-1 and react-native 0.52->0.54 and I get the warning above in the simulator.
I updgraded from react 16.2 -> 16.3-alpha-1 and react-native 0.52->0.54 and I get the warning above in the simulator.
要修复正在使用keyExtrac到r的任何列表组件中的错误,请使用.到String()将组件(FlatList等)更新为string key.All keys must now be string values.
如下图所示;
keyExtrac到r={item => item.index_id}
到
keyExtrac到r={item => item.index_id.到String()}
This change is a requirement for all uses of a keyExtrac到r so that would include React-Native components like; FlatList and ActionSheet.