📜  不支持动态更改 onViewableItemsChanged - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:10.950000             🧑  作者: Mango

代码示例1
onst onViewRef = React.useRef((viewableItems)=> {
      console.log(viewableItems)
      // Use viewable items in state or as intended
  })
  const viewConfigRef = React.useRef({ viewAreaCoveragePercentThreshold: 50 })


 index.toString()}
      viewabilityConfig={viewConfigRef.current}
      renderItem={({ item, index }) => { ... }}
/>