id | title | sidebar_label |
---|---|---|
react-window |
react-window |
react-window |
requestAnimationFrame
import React from 'react'
import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import { FixedSizeList } from '@tarojsx/library/dist/react-window'
const { windowWidth, windowHeight } = Taro.getSystemInfoSync()
const Demo = () => (
<FixedSizeList width={windowWidth} height={windowHeight} itemCount={1000} itemSize={35}>
{({ index, style }) => <View style={style}>Row {index}</View>}
</FixedSizeList>
)