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

@hellojh/react-native-infinite-scroll

v0.1.1

Published

It is a library of infinite scrolls and inverse infinite scrolls used by React Native.

Downloads

5

Readme

npm-react-native-infinite-scroll

It is a library of infinite scrolls and inverse infinite scrolls used by React Native.

Infinite scrolls are often used when paging, and reverse infinite scrolls are often used when implementing chatting.

If you use it, I'd appreciate it if you could press ⭐ on the GitHub!

Installation

npm i @hellojh/react-native-infinite-scroll

Components


|Component | Description | |------|-----| |<InfiniteScroll></InfiniteScroll>| Scrolling from top to bottom. | |<R_InfiniteScroll></R_InfiniteScroll>| Scroll from bottom to top. |

InfiniteScroll

It's a typical infinite scroll.

|props | Description | Type| |------|-----|-----| |endPoint| "OnScrollEnd" starts when you reach the point of "endPoint" from the floor. | Int | |onScrollEnd| A function to be executed when the scroll arrives last. | Function |

sample code

<InfiniteScroll
    endPoint={100}
    onScrollEnd={fetchData}
>
    {
        array.map((item, index) => {
            return(
                <Text key={index}>{item}</Text>
            )
        })
    }
</InfiniteScroll>

R_InfiniteScroll

It's the opposite of a typical infinite scroll.
It detects when the scroll reaches the top and the scroll is facing the bottom at the first rendering.

|props | Description | Type| |------|-----|-----| |onScrollEnd| This is a function to be executed when the scroll arrives at the top. | Function |

sample code

<R_InfiniteScroll
    onScrollEnd={fetchData}
>
    {
        array.map((item, index) => {
            return(
                <Text key={index}>{item}</Text>
            )
        })
    }
</R_InfiniteScroll>

npm-react-native-infinite-scroll (Korean)

React Native에서 사용하는 무한스크롤과 역무한스크롤 라이브러리입니다.

무한스크롤은 페이징 처리할 때 많이 사용하며 역무한스크롤의 경우 채팅을 구현할 때 많이 사용합니다.

사용하시면 깃허브에 ⭐ 한 번만 눌러주시면 감사하겠습니다!!

Installation

npm i @hellojh/react-native-infinite-scroll

Components


|Component | Description | |------|-----| |<InfiniteScroll></InfiniteScroll>| 위에서 아래로 향하는 스크롤입니다. | |<R_InfiniteScroll></R_InfiniteScroll>| 아래에서 위로 향하는 스크롤입니다. |

InfiniteScroll

일반적인 무한스크롤입니다.

|props | Description | Type| |------|-----|-----| |endPoint| 바닥에서부터 endPoint의 지점에 도달하였을 때 onScrollEnd가 시작됩니다. | Int | |onScrollEnd| 스크롤이 마지막에 도착했을 때 실행시킬 함수입니다. | Function |

sample code

<InfiniteScroll
    endPoint={100}
    onScrollEnd={fetchData}
>
    {
        array.map((item, index) => {
            return(
                <Text key={index}>{item}</Text>
            )
        })
    }
</InfiniteScroll>

R_InfiniteScroll

일반적인 무한스크롤의 반대입니다.
스크롤이 제일 위로 도달하였을 때를 감지하며 첫 렌더링 시 스크롤이 제일 아래로 향해있습니다.

|props | Description | Type| |------|-----|-----| |onScrollEnd| 스크롤이 제일 위에 도착했을 때 실행시킬 함수입니다. | Function |

sample code

<R_InfiniteScroll
    onScrollEnd={fetchData}
>
    {
        array.map((item, index) => {
            return(
                <Text key={index}>{item}</Text>
            )
        })
    }
</R_InfiniteScroll>