react-native-auto-infinite-scroll

- 선언 ``` import RNInfiniteScroll from 'react-native-auto-infinite-scroll'; ``` - 사용 ``` <RNInfiniteScroll data={[{ key: '1' }, { key: '2' }, { key: '3' }, { key: '4' }, { key: '5' }, { key: '6' }, { key: '7' }]} renderItem={({ item }) => <View sty

Usage no npm install needed!

<script type="module">
  import reactNativeAutoInfiniteScroll from 'https://cdn.skypack.dev/react-native-auto-infinite-scroll';
</script>

README

react-native-auto-infinite-scroll

  • 선언
import RNInfiniteScroll from 'react-native-auto-infinite-scroll';
  • 사용
<RNInfiniteScroll
    data={[{ key: '1' }, { key: '2' }, { key: '3' }, { key: '4' }, { key: '5' }, { key: '6' }, { key: '7' }]}
    renderItem={({ item }) => <View style={styles.listItem}><Text>{item.key}</Text></View>}/>