Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including react-native-yylistview with all npm packages installed. Try it out:

require("react-native/package.json"); // react-native is a peer dependency. require("react/package.json"); // react is a peer dependency. var reactNativeYylistview = require("react-native-yylistview")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

react-native-yylistview v1.0.0

YYListView is a memory-improved implementation of React Native's ListView

Build Status

React Native YYListView

YYListView is a memory-improved implementation of the React Native's ListView.

The Problem

YYListView is inspired by SGListView. SGListView is implemented based on the onChangVisibleRows callback method of React Native ListView. But there is a big problem with onChangVisibleRows callback method. See ListView onChangeVisibleRows() stops being triggered after 100 rendered rows #9101 . So I decided to write YYListView based on onScroll callback method of React Native ListView.

Installation

Install via npm

npm install react-native-yylistview --save

Usage

Import YYListView

import YYListView from 'react-native-yylistview';

Change references from ListView to YYListView.

From:

<ListView ... />

To:

<YYListView ... />
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free