{"id":15984270,"url":"https://github.com/jpapillon/react-native-carousel-pager","last_synced_at":"2025-03-16T07:31:58.861Z","repository":{"id":54385579,"uuid":"99704464","full_name":"jpapillon/react-native-carousel-pager","owner":"jpapillon","description":"React Native carousel pager.","archived":false,"fork":false,"pushed_at":"2021-02-22T06:07:34.000Z","size":97691,"stargazers_count":90,"open_issues_count":14,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T05:49:29.427Z","etag":null,"topics":["carousel","pager","react-native"],"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/jpapillon.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":"2017-08-08T14:53:29.000Z","updated_at":"2024-04-08T13:57:47.000Z","dependencies_parsed_at":"2022-08-13T14:10:13.638Z","dependency_job_id":null,"html_url":"https://github.com/jpapillon/react-native-carousel-pager","commit_stats":null,"previous_names":["jpapillon/react-native-caroussel-pager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpapillon%2Freact-native-carousel-pager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpapillon%2Freact-native-carousel-pager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpapillon%2Freact-native-carousel-pager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpapillon%2Freact-native-carousel-pager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpapillon","download_url":"https://codeload.github.com/jpapillon/react-native-carousel-pager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806045,"owners_count":20350775,"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","pager","react-native"],"created_at":"2024-10-08T02:06:01.756Z","updated_at":"2025-03-16T07:31:58.122Z","avatar_url":"https://github.com/jpapillon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-carousel-pager\n[![Version](https://img.shields.io/npm/v/react-native-carousel-pager.svg)](https://www.npmjs.com/package/react-native-carousel-pager)\n[![npm](https://img.shields.io/npm/dm/react-native-carousel-pager.svg)](https://www.npmjs.com/package/react-native-carousel-pager)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)]()\n\n\u003cp\u003e\n    \u003cimg src=\"./react-native-carousel-pager.gif\" width=\"300\"\u003e\n\u003c/p\u003e\n\n## Installation\n```bash\nnpm install react-native-carousel-pager --save\n```\nor\n```bash\nyarn add react-native-carousel-pager\n```\n\n## Usage\n```js\nimport {View} from 'react-native';\nimport React, {Component} from 'react';\nimport CarouselPager from 'react-native-carousel-pager';\n\nexport default class Pager extends Component {\n  onClickSomething() {\n    this.carousel.goToPage(2);\n  }\n\n  render() {\n    return (\n      \u003cView style={{flex: 1}}\u003e\n        \u003cCarouselPager ref={ref =\u003e this.carousel = ref} initialPage={2} pageStyle={{backgroundColor: '#fff'}}\u003e\n          \u003cView key={'page0'}\u003e\u003c/View\u003e\n          \u003cView key={'page1'}\u003e\u003c/View\u003e\n          \u003cView key={'page2'}\u003e\u003c/View\u003e\n          \u003cView key={'page3'}\u003e\u003c/View\u003e\n        \u003c/CarouselPager\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n```\n\n## Properties\n\nName | propType | default value | description\n--- | --- | --- | ---\ninitialPage | number | 0 | Initial page to display on render\nvertical | boolean | false | Set to `true` if carousel should be vertical\nblurredZoom | number | 0.8 | Zoom (number between 0 and 1) to apply to blurred pages\nblurredOpacity | number | 0.8 | Opacity (number between 0 and 1) to apply to blurred pages\nanimationDuration | number | 150 | Animation duration between page changes\ncontainerPadding | number | 30 | Container padding (used to display part of preceding and following pages)\npageSpacing | number | 10 | Space between pages\npageStyle | object | null | Style to apply to each page\nonPageChange | function | (page) =\u003e {} | When current page changes, call onPageChange with parameter\n\n## Methods\n\nName | propType | description\n--- | --- | ---\ngoToPage | number | Scrolls to the given page","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpapillon%2Freact-native-carousel-pager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpapillon%2Freact-native-carousel-pager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpapillon%2Freact-native-carousel-pager/lists"}