MCPcopy Index your code
hub / github.com/Kureev/react-native-list

github.com/Kureev/react-native-list @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
89 symbols 132 edges 9 files 24 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

FlatList, VirtualizedList, SectionList for React-Native < 0.43

This repository mimics the latest changes in React Native 0.43.

Motivation

Currently, React-Native@0.43 depends on React@16.0.0-alpha6 which isn't yet supported by many libraries like Enzyme etc. Although, this version of RN brings us amazing list views: FlatList, VirtualizedList & SectionList. So there is a choice either to use 0.43 with its awesome lists or use 0.42 and being able to test your applications with Enzyme. Well, I choose both ;)

This package contains copied and adapted implementation of 0.43 list features to < 0.43 realms.

Installation

  • Install package using your favorite manager:

sh yarn add react-native-list or sh npm add react-native --save

  • Add react-native-list to your providesModuleNodeModules:

  • If you don't have rn-cli.config.js, create rn-cli.config.js in the root directory of your project:

js module.exports = { getProvidesModuleNodeModules() { return [ 'react-native', 'react-native-windows', 'react-native-list', ]; }, };

  • If you already have rn-cli.config.js, add react-native-list to your getProvidesModuleNodeModules function or copy it from the snippet above.

Usage

import { FlatList, VirtualizedList, SectionList } from 'react-native-list';

// then use it like a regular react-native@0.43 components

For more information, see Better List Views in React Native.

Core symbols most depended-on inside this repo

_subExtractor
called by 5
VirtualizedSectionList.js
scrollToIndex
called by 4
MetroListView.js
getItem
called by 4
VirtualizedSectionList.js
getListRef
called by 3
MetroListView.js
recordInteraction
called by 3
SectionList.js
dispose
called by 3
ViewabilityHelper.js
_computeState
called by 2
MetroListView.js
getScrollResponder
called by 2
SectionList.js

Shape

Method 38
Function 35
Class 16

Languages

TypeScript100%

Modules by API surface

VirtualizedList.js22 symbols
VirtualizedSectionList.js15 symbols
FlatList.js13 symbols
ViewabilityHelper.js11 symbols
MetroListView.js11 symbols
SectionList.js7 symbols
FillRateHelper.js7 symbols
VirtualizeUtils.js3 symbols

For agents

$ claude mcp add react-native-list \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact