npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-wli-flatlist

v1.0.3

Published

TODO

Downloads

6

Readme

react-native-wli-flatlist

Getting started

$ npm install react-native-wli-flatlist --save

Mostly automatic installation

$ react-native link react-native-wli-flatlist

Usage

import WliFlatlist from 'react-native-wli-flatlist';

// TODO: What to do with the module?

  <WliFlatlist
    data={DATA}
    renderItem={renderItem}
    keyExtractor={item => item.id}
  />     

Props

| Props | Type | Required | Description | |---------------- |------------------- |--------------------|-------------------------------------------------------------------------------| | data | array | Yes | Array List to be displayed. | | renderItem | function | Yes | Takes an item from data and renders it into the list. | | keyExtractor | function | Optional | Used to extract a unique key for a given item at the specified index. | | ListHeaderComponent | component, element | Optional | Rendered at the top of all the items. Can be a React Component (e.g. SomeComponent), or a React element (e.g. ). | | ListHeaderComponentStyle | View Style | Optional | Styling for internal View for ListHeaderComponent. | | ListFooterComponent | component, element | Optional | Rendered at the bottom of all the items. Can be a React Component (e.g. SomeComponent), or a React element (e.g. ). | | ListFooterComponentStyle | View Style | Optional | Styling for internal View for ListFooterComponent. | | onEndReached | function | Optional | Called once when the scroll position gets within onEndReachedThreshold of the rendered content. | | onEndReachedThreshold | number | Optional | How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. | | onRefresh | function | Optional | If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. Make sure to also set the refreshing prop correctly. | | refreshing | boolean | Optional | Set this true while waiting for new data from a refresh.. | | ItemSeparatorComponent | component | Optional | Rendered in between each item, but not at the top or bottom. | | horizontal | boolean | Optional | If true, renders items next to each other horizontally instead of stacked vertically. | | numColumns | number | Optional | Used to show list in grid view. |

We can also use other properties of FlatList in this component as per our requirment just need to pass as it is as we pass in FlatList.

Methods

We can use all Methods of FlatList also just need to pass as we pass in FlatList.