{"id":15405164,"url":"https://github.com/fnando/react-native-carousel","last_synced_at":"2025-04-16T03:46:29.934Z","repository":{"id":35487220,"uuid":"217818212","full_name":"fnando/react-native-carousel","owner":"fnando","description":"A ridiculously simple carousel.","archived":false,"fork":false,"pushed_at":"2023-01-04T23:35:07.000Z","size":2322,"stargazers_count":4,"open_issues_count":53,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T04:43:19.733Z","etag":null,"topics":["carousel","react-native","slider","swiper"],"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/fnando.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":"2019-10-27T07:12:59.000Z","updated_at":"2024-09-13T19:37:51.000Z","dependencies_parsed_at":"2022-07-27T15:31:21.575Z","dependency_job_id":null,"html_url":"https://github.com/fnando/react-native-carousel","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/fnando%2Freact-native-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Freact-native-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Freact-native-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Freact-native-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/react-native-carousel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249192281,"owners_count":21227755,"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":["carousel","react-native","slider","swiper"],"created_at":"2024-10-01T16:15:17.208Z","updated_at":"2025-04-16T03:46:29.905Z","avatar_url":"https://github.com/fnando.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @fnando/react-native-carousel\n\n[![NPM package version](https://img.shields.io/npm/v/@fnando/react-native-carousel.svg)](https://www.npmjs.com/package/@fnando/react-native-carousel)\n![License: MIT](https://img.shields.io/npm/l/@fnando/react-native-carousel.svg)\n\nA ridiculously simple carousel.\n\n## Usage\n\n### Installation\n\n```console\n$ yarn add @fnando/react-native-carousel\n```\n\n### How to use\n\nThe basic usage is [rendering the carousel as it its][example-1]. This means\nthat indicators will be rendered using `#ccc` for inactive dots and `#4a90e2`\nfor active dots.\n\nIf you need to customize the indicators in any way, even changing the color,\nyou'll have to implement your own renderer. You can either disable the\nindicators entirely with `showsIndicator={false}` then [rendering them outside\nthe `Carousel` component][example-2], or just [pass the indicator\nelement][example-3] using `renderIndicator`.\n\nIf you need to programatically go to an specific page, get a `ref` and use\n`ref.current.goToPage(page: number, animated: boolean)`. The referece also\ncontains the current `ScrollView` object.\n\n### Examples\n\n[![Default indicators](https://github.com/fnando/react-native-carousel/raw/master/images/default-indicators.gif)][example-1]\n\n[![Custom indicators](https://github.com/fnando/react-native-carousel/raw/master/images/custom-indicators.gif)][example-2]\n\n[![Custom indicators - Change color](https://github.com/fnando/react-native-carousel/raw/master/images/custom-indicators-simple.gif)][example-3]\n\n## License\n\n(The MIT License)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the 'Software'), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[example-1]:\n  https://github.com/fnando/react-native-carousel/blob/master/examples/default-indicators/App.tsx\n[example-2]:\n  https://github.com/fnando/react-native-carousel/blob/master/examples/custom-indicators/App.tsx\n[example-3]:\n  https://github.com/fnando/react-native-carousel/blob/master/examples/custom-indicators-simple/App.tsx\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Freact-native-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Freact-native-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Freact-native-carousel/lists"}