{"id":23594332,"url":"https://github.com/felipesousa/react-native-looped-carousel-improved","last_synced_at":"2025-05-07T22:08:16.470Z","repository":{"id":57338164,"uuid":"101909238","full_name":"felipesousa/react-native-looped-carousel-improved","owner":"felipesousa","description":":carousel_horse: Simple and Powerful Carousel to React Native.","archived":false,"fork":false,"pushed_at":"2018-10-17T22:13:51.000Z","size":142,"stargazers_count":9,"open_issues_count":1,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T22:08:10.392Z","etag":null,"topics":["arrow","carousel","looped","native","react","react-native"],"latest_commit_sha":null,"homepage":null,"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/felipesousa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-08-30T17:22:36.000Z","updated_at":"2022-12-27T09:36:43.000Z","dependencies_parsed_at":"2022-09-09T10:52:32.191Z","dependency_job_id":null,"html_url":"https://github.com/felipesousa/react-native-looped-carousel-improved","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipesousa%2Freact-native-looped-carousel-improved","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipesousa%2Freact-native-looped-carousel-improved/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipesousa%2Freact-native-looped-carousel-improved/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipesousa%2Freact-native-looped-carousel-improved/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipesousa","download_url":"https://codeload.github.com/felipesousa/react-native-looped-carousel-improved/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961837,"owners_count":21832196,"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":["arrow","carousel","looped","native","react","react-native"],"created_at":"2024-12-27T09:17:07.205Z","updated_at":"2025-05-07T22:08:16.424Z","avatar_url":"https://github.com/felipesousa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-looped-carousel-improved\n### Simple and Powerful Carousel to React Native.\n[![NPM version](http://img.shields.io/npm/v/react-native-looped-carousel-improved.svg?style=flat)](https://www.npmjs.com/package/react-native-looped-carousel-improved)\n[![Dependency Status](https://david-dm.org/felipesousa/react-native-looped-carousel-improved.svg)](https://david-dm.org/felipesousa/react-native-looped-carousel-improved)\n[![devDependency Status](https://david-dm.org/felipesousa/react-native-looped-carousel-improved/dev-status.svg)](https://david-dm.org/felipesousa/react-native-looped-carousel-improved#info=devDependencies)\n\nFull-fledged \"infinite\" (or not) carousel for your [react-native](https://github.com/facebook/react-native/) project. Supports iOS and Android.\n\nBased on [React Native](https://github.com/facebook/react-native/) by Facebook and extends of [react-native-looped-carousel](https://github.com/phil-r/react-native-looped-carousel/) component.\n\n## Demo\n![](http://spronin.github.io/img/react.gif)\n\n## Install\n\n```sh\nnpm install react-native-looped-carousel-improved --save\n```\n\n## Documentation Props\n\nName | propType | default value | description\n--- | --- | --- | ---\nautoplay | boolean | true | enables auto animations\ndelay | number | 4000 | number in milliseconds between auto animations\ncurrentPage | number | 0 | allows you to set initial page\npageStyle | style | null | style for pages\ncontentContainerStyle | style | null | `contentContainerStyle` for the scrollView\nonAnimateNextPage | func | null | callback that is called with 0-based Id of the current page\nswipe | bool | true | motion control for Swipe\nisLooped | bool | true | loop the slide\n**Pagination** | --- | --- | ---\npageInfo | boolean | false | shows `{currentPage} / {totalNumberOfPages}` pill at the bottom\npageInfoBackgroundColor | string | 'rgba(0, 0, 0, 0.25)' | background color for pageInfo\npageInfoBottomContainerStyle | style | null | style for the pageInfo container\npageInfoTextStyle | style | null | style for text in pageInfo\npageInfoTextSeparator | string | ' / ' | separator for `{currentPage}` and `{totalNumberOfPages}`\n**Bullets** | --- | --- | ---\nbullets | bool | false | wether to show \"bullets\" at the bottom of the carousel\nbulletStyle | style | null | style for each bullet\nbulletsContainerStyle | style | null | style for the bullets container\nchosenBulletStyle | style | null | style for the selected bullet\nhideBulletsIndices | array | [] | overrides display of bullets on a per-page-basis\n**Arrows** | --- | --- | ---\narrows | bool | false | wether to show navigation arrows for the carousel\narrowsStyle | style | null | style for navigation arrows\narrowsContainerStyle | style | null | style for the navigation arrows container\nleftArrowText | string / element | 'Left' | label / icon for left navigation arrow\nrightArrowText | string / element | 'Right' | label / icon for right navigation arrow\nrightArrowStyle | style | null | style for the right arrow\nleftArrowStyle | style | null | style for the left arrow\n\n\n## Usage\n```js\nimport React, { Component } from 'react';\nimport {\n  Text,\n  View,\n  Dimensions,\n} from 'react-native';\nimport Carousel from 'react-native-looped-carousel-improved';\n\nconst { width, height } = Dimensions.get('window');\n\nexport default class MyCarousel extends Component {\n\n  constructor(props) {\n    super(props);\n\n    this.state = {\n      size: { width, height },\n    };\n  }\n\n  _onLayoutDidChange = (e) =\u003e {\n    const layout = e.nativeEvent.layout;\n    this.setState({ size: { width: layout.width, height: layout.height } });\n  }\n\n  render() {\n    return (\n      \u003cView style={{ flex: 1 }} onLayout={this._onLayoutDidChange}\u003e\n        \u003cCarousel\n          delay={2000}\n          style={this.state.size}\n          autoplay\n          pageInfo\n          isLooped\n          onAnimateNextPage={(p) =\u003e console.log(p)}\n        \u003e\n          \u003cView style={[{ backgroundColor: '#BADA55' }, this.state.size]}\u003e\u003cText\u003e1\u003c/Text\u003e\u003c/View\u003e\n          \u003cView style={[{ backgroundColor: 'red' }, this.state.size]}\u003e\u003cText\u003e2\u003c/Text\u003e\u003c/View\u003e\n          \u003cView style={[{ backgroundColor: 'blue' }, this.state.size]}\u003e\u003cText\u003e3\u003c/Text\u003e\u003c/View\u003e\n        \u003c/Carousel\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n```\n\n## Contributing\n1. Fork it!\n\n2. Create your feature branch: `git checkout -b my-new-feature`\n\n3. Commit your changes: `git commit -am 'Add some feature'`\n\n4. Push to the branch: `git push origin my-new-feature`\n\n5. Submit a pull request :D\n\n## History\n\nThis project is a just improvement to [this project](https://github.com/phil-r/react-native-looped-carousel).\n\n## Credits\n\nAll Credits to [@phil-r](https://github.com/phil-r/) to create [react-native-looped-carousel](https://github.com/phil-r/react-native-looped-carousel).\n\n## License\n\nMIT @ Felipe Sousa\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipesousa%2Freact-native-looped-carousel-improved","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipesousa%2Freact-native-looped-carousel-improved","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipesousa%2Freact-native-looped-carousel-improved/lists"}