为什么我们在flatlist中使用getItemLayout,它如何帮助提高flatlist的性能.检查react-native文档,但没有找到令人满意的答案.
getItemLayout={(data, index) => ( {length: ITEM_HEIGHT, offset: ITEM_HEIGHT * index, index} )}
什么是抵消在这里,它做什么?
performance android react-native react-native-flatlist
android ×1
performance ×1
react-native ×1
react-native-flatlist ×1