首页指南参考教程

FlashList

一个 React Native 组件,提供快速且高性能的方式来渲染列表。

Android
iOS
tvOS
Web

该库在 Expo SDK 参考中列出,因为它包含在 Expo 中。你可以将你选择的任何库与 开发构建 一起使用。

@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

Terminal
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/.

Expo 中文网 - 粤ICP备13048890号