{"id":4078,"url":"https://github.com/machadogj/react-native-carousel-control","last_synced_at":"2025-04-05T10:10:40.098Z","repository":{"id":45014079,"uuid":"52280288","full_name":"machadogj/react-native-carousel-control","owner":"machadogj","description":"React Native Carousel control with support for iOS and Android","archived":false,"fork":false,"pushed_at":"2020-05-21T17:08:06.000Z","size":23,"stargazers_count":247,"open_issues_count":10,"forks_count":51,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T09:12:24.387Z","etag":null,"topics":[],"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/machadogj.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":"2016-02-22T14:47:31.000Z","updated_at":"2024-05-18T01:46:38.000Z","dependencies_parsed_at":"2022-09-04T23:00:34.749Z","dependency_job_id":null,"html_url":"https://github.com/machadogj/react-native-carousel-control","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/machadogj%2Freact-native-carousel-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machadogj%2Freact-native-carousel-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machadogj%2Freact-native-carousel-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machadogj%2Freact-native-carousel-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/machadogj","download_url":"https://codeload.github.com/machadogj/react-native-carousel-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318745,"owners_count":20919484,"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":[],"created_at":"2024-01-05T20:17:00.399Z","updated_at":"2025-04-05T10:10:40.062Z","avatar_url":"https://github.com/machadogj.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# React Native Carousel Control\n\nReact Native Carousel with support for both iOS and Android.\n![carousel-demo](https://cloud.githubusercontent.com/assets/671212/13221426/1cc2d1fc-d95a-11e5-88d2-3c4d738814e9.gif)\n\nReact \u003e= 16 -\u003e 2.x.x\nReact \u003c  16 -\u003e 1.x.x\n\n## Installation\n\n```\nnpm install react-native-carousel-control --save\n```\n\n## Usage\n\n```\nimport Carousel from \"react-native-carousel-control\";\n//...\n\u003cCarousel\u003e\n    \u003cText\u003eHello\u003c/Text\u003e\n    \u003cText\u003eWorld!\u003c/Text\u003e\n    \u003cText\u003eFrom carousel\u003c/Text\u003e\n\u003c/Carousel\u003e\n```\n\nThe carousel has the following format:\n\n```\n     ------------\n    |      v--- page\n    |-   ----   -|\n    | | |    | | |\n    | | |    | | |\n    | | |    | | |\n    |-   ----   -|\n    |^-- sneak   |\n    |         ^--- gap\n     ------------\n```\n\n### pageStyle\n\nType: `PropTypes.object`\n\nThe style that will be applied on the page. For example:\n\n```\n\u003cCarousel pageStyle={ {backgroundColor: \"white\", borderRadius: 5} }\u003e\n```\n\n### pageWidth\n\nType: `PropTypes.number`\n\nThe width of the page. By default it will adjust to `deviceWidth - 100`.\n\n### initialPage\n\nType: `PropTypes.number`\n\nThe index of the initial page. The first page is `0`.\n\n### onPageChange\n\nType: `PropTypes.func`\n\nThis function will be called every time the page changes.\n\n### sneak\n\nType: `PropTypes.number`\n\nHow much of the adjacent pages will display (see format above).\n\n### currentPage\n\nType: `PropTypes.number`\n\nUpdate this value to move carousel to a specific page. For example:\n\n```\n\u003cCarousel currentPage={ this.state.pageNumber }\u003e\n```\n\n### swipeThreshold\n\nType: `PropTypes.number`\n\nHow much users have to swipe to go to the next/prev page. Default: 0.5 (half the page)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Gustavo Machado \u003cmachadogj@gmail.com\u003e.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachadogj%2Freact-native-carousel-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmachadogj%2Freact-native-carousel-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachadogj%2Freact-native-carousel-control/lists"}