0.1.0 • Published 12 months ago

react-native-looped-scroll-view v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

react-native-infinity-scroll-view

Installation

Using NPM:

$ npm i react-native-infinity-scroll-view

Using Yarn:

$ yarn add react-native-infinity-scroll-view

Usage

import { InfinityScrollView } from 'react-native-infinity-scroll-view'
<InfinityScrollView
  data={[1,2,3,4,5,6,7,8,9]}
  renderItem={({ item }) => <View><Text>{item.toString()}</Text></View>}
  vivableCount={5}
  pagingEnabled
  onInit={saveHour}
  onScrollEnd={saveHour}
  onScrollStart={() => {
    setActiveHourIdx(undefined);
  }}
  style={styles.timeFace}
/>

Options

InfinityScrollView

PropsTypeDescRequired
dataany[]Items listtrue
pagingEnabledbooleanFix position after scrollfalse
vivableCountnumberItems count on scroll viewporttrue
onInit(items?: RenderItemValueType[]) => void-false
onScrollStart() => void-false
onScrollEnd(items?: RenderItemValueType[]) => void-false
renderItem(v: RenderItemValueType) => ReactNode-true
onViewableItemsChanged(items?: RenderItemValueType[]) => void-false
styleStyleProp-false

Authors