一个 React Native 组件,提供快速且高性能的方式来渲染列表。
@shopify/flash-list
是 "快速且高性能的 React Native 列表" 组件,是 React Native <FlatList>
组件的直接替代品。是 "在引擎盖下回收组件以最大限度地提高性能。"
¥@shopify/flash-list
is a "Fast and performant React Native list" component that is a drop-in replacement for React Native's <FlatList>
component. It "recycles components under the hood to maximize performance."
¥Installation
-
npx expo install @shopify/flash-list
If you are installing this in an existing React Native app (bare workflow), start by installing expo
in your project. Then, follow the additional instructions as mentioned by library's README under "Installation in bare React Native projects" section.
¥Usage
请参阅 https://shopify.github.io/flash-list/ 处的完整文档。
¥See full documentation at https://shopify.github.io/flash-list/.