0.1.1 • Published 2 years ago

@hellojh/react-native-infinite-scroll v0.1.1

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

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


ComponentDescription
<InfiniteScroll></InfiniteScroll>Scrolling from top to bottom.
<R_InfiniteScroll></R_InfiniteScroll>Scroll from bottom to top.

InfiniteScroll

It's a typical infinite scroll.

propsDescriptionType
endPoint"OnScrollEnd" starts when you reach the point of "endPoint" from the floor.Int
onScrollEndA 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.

propsDescriptionType
onScrollEndThis 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


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

InfiniteScroll

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

propsDescriptionType
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

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

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

sample code

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

2 years ago

0.1.0

2 years ago

0.0.91

2 years ago

0.0.9

2 years ago

0.0.89

2 years ago

0.0.88

2 years ago

0.0.87

2 years ago

0.0.86

2 years ago

0.0.85

2 years ago

0.0.84

2 years ago

0.0.83

2 years ago

0.0.82

2 years ago

0.0.81

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago