{"id":21088153,"url":"https://github.com/prateek3255/react-native-infinite-looping-scroll","last_synced_at":"2025-07-20T02:36:53.001Z","repository":{"id":52987985,"uuid":"141710144","full_name":"prateek3255/react-native-infinite-looping-scroll","owner":"prateek3255","description":"A react native component that lets you scroll infinitely in both directions by repeating the same items. 📱","archived":false,"fork":false,"pushed_at":"2018-10-05T13:43:30.000Z","size":3809,"stargazers_count":39,"open_issues_count":8,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-01T22:36:07.542Z","etag":null,"topics":["hacktoberfest","hacktoberfest2018","npm-package","react-native","react-native-infinite-scroll","react-native-list"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prateek3255.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-20T12:36:30.000Z","updated_at":"2024-12-19T23:42:04.000Z","dependencies_parsed_at":"2022-08-26T18:22:00.109Z","dependency_job_id":null,"html_url":"https://github.com/prateek3255/react-native-infinite-looping-scroll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prateek3255/react-native-infinite-looping-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateek3255%2Freact-native-infinite-looping-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateek3255%2Freact-native-infinite-looping-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateek3255%2Freact-native-infinite-looping-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateek3255%2Freact-native-infinite-looping-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prateek3255","download_url":"https://codeload.github.com/prateek3255/react-native-infinite-looping-scroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateek3255%2Freact-native-infinite-looping-scroll/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265853982,"owners_count":23839287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","hacktoberfest2018","npm-package","react-native","react-native-infinite-scroll","react-native-list"],"created_at":"2024-11-19T21:15:52.949Z","updated_at":"2025-07-20T02:36:52.974Z","avatar_url":"https://github.com/prateek3255.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-infinite-looping-scroll\n\nA react native component that lets you scroll infinitely in both directions by repeating the same items.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/tjacobdesign/react-native-infinite-looping-scroll/master/infinite-gif.gif\" width=\"640\" height=\"525\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nRun `npm install react-native-infinite-looping-scroll` in your project directory.\n\n## Usage\n\nThis snippet would produce the output shown in the above gif\n\n```\nimport React, { Component } from 'react';\nimport { Platform, StyleSheet, Text, View, FlatList, } from 'react-native';\nimport InfiniteScroll from 'react-native-infinite-looping-scroll';\n\n\nexport default class App extends Component {\n  constructor(props) {\n    super(props)\n  }\n \n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cInfiniteScroll\n        data={[{ key: '1' }, { key: '2' }, { key: '3' }, { key: '4' }, { key: '5' }, { key: '6' }, { key: '7' }]}\n        renderItem={({ item }) =\u003e \u003cView style={styles.listItem}\u003e\u003cText style={styles.text}\u003e{item.key}\u003c/Text\u003e\u003c/View\u003e}\n        /\u003e\n        \n      \u003c/View\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#F5FCFF',\n  },\n  listItem: {\n    flexDirection: 'row',\n    justifyContent: 'space-between',\n    alignItems: 'center',\n    padding: 50,\n    margin: 2,\n    borderColor: '#0099A8',\n    borderWidth: 10,\n    backgroundColor: '#FEFEFE'\n  },\n  text: {\n    color: '#0099A8',\n    fontSize: 32,\n    fontWeight: 'bold'\n  },\n  welcome: {\n    fontSize: 20,\n    textAlign: 'center',\n    margin: 10,\n  },\n  instructions: {\n    textAlign: 'center',\n    color: '#333333',\n    marginBottom: 5,\n  },\n});\n\n```\n\n## Props\n\nIt accepts all the [FlatList](https://facebook.github.io/react-native/docs/flatlist.html) props out of which renderItem and data are the compulsory ones and has one more extra prop called `offset` which lets you set the offset at which new data should be added. The default value is 20 and you can change it according to your item.\n\n## Pending Tasks\n\n- [ ] Make upward and downward scroll more smooth.\n- [ ] The scroll view should work even when the content size is less than the layout measurement.\n\n## Contributing\n\nThis is project is still in beta at the moment, but is still very basic, so if you want to work on the above mention tasks, or you find a bug just open a PR or an issue and ping me!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateek3255%2Freact-native-infinite-looping-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprateek3255%2Freact-native-infinite-looping-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateek3255%2Freact-native-infinite-looping-scroll/lists"}