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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-circle-list

v0.1.33

Published

A Javascript implementation of a circular list, for React Native

Downloads

147

Readme

react-native-circle-list

Description

A React Native component implemented in Javascript to create a circular list of elements with infinite scroll. Data is mapped onto a fixed number of elements so no matter how long your list is, it will appear to render in the given circle size.

Installation

$ yarn add react-native-circle-list
$ npm install react-native-circle-list

Example Usage

...
import CircleList from 'react-native-circle-list'
...

export class ExampleUsage extends PureComponent {

    _keyExtractor = item => item.id

    _renderItem = ({ item }) => <CircleListItem label={`Label ${item.value}`} value={item.value} />

    render() {
        const { data } = this.props

        return (
            <CircleList
                data={data}
                keyExtractor={this._keyExtractor}
                renderItem={this._renderItem}
            />
        )
    }
}

Props

| Prop | Default | Description | Required | | -------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | | containerStyle | undefined | Override default container styling. | No | | data | [] | Array of objects, similar to React Native's FlatList. | Yes | | elementCount | 12 | Number of elements that form the circle. Any value lower than 12 will have no effect as this is the smallest amount to form a circular list. Max element count is 40, any number greater than this will have no effect. Most arc shapes can still be achieved with the proper combination of element count, radius, and flatness. | No | | flatness | 0 | Value between 0-1 specifying the flatness of the visible part of the circle. With a flatness of 1 (fully flat) only uniformly sized elements are supported currently. | No | | innerRef | undefined | Gets the ref for the CircleList component . | No | | keyExtractor | undefined | Function to extract list item keys from dataset, similar to React Native's FlatList | Yes | | onScroll | undefined | Called continuously as the list is scrolled. | No | | onScrollBegin | undefined | Called once when scrolling of the list begins. | No | | onScrollEnd | undefined | Called once when scrolling of the list ends. | No | | radius | 1.2 * (SCREEN_WIDTH / 2) | Radius of the circle form by the list elements. | No | | renderItem | undefined | Function to that returns a React Component or elements to render, similar to React Native's FlatList. | Yes | | selectedItemScale | 1.15 | Scaling factor for the selected item. | No | | swipeSpeedMultiplier | 40 | Postive number to customize how quickly the list rotates in response to a gesture. A higher number means more movement for a given gesture. | No | | visiblityPadding | 3 | How many elements to show on either side of the selected element. | No |

Methods

| Method | Arguments | Description | | ------------- | ----------------- | -------------------------------------------------------------------------------- | | scrollToIndex | (index, duration) | Scrolls to the specified index in the given duration. Default duration is 250ms. |

PRs Welcome!