首页指南参考教程

FlashList

GitHub

npm

一个 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."

Platform Compatibility

Android DeviceAndroid EmulatoriOS DeviceiOS SimulatorWeb

安装

¥Installation

Terminal
npx expo install @shopify/flash-list

If you're installing this in a bare React Native app, you should also follow these additional installation instructions.

用法

¥Usage

请参阅 https://shopify.github.io/flash-list/ 处的完整文档。

¥See full documentation at https://shopify.github.io/flash-list/.

Expo 中文网 - 粤ICP备13048890号