{"id":18725495,"url":"https://github.com/jacklam718/react-native-carousel-component","last_synced_at":"2025-04-12T16:08:30.774Z","repository":{"id":57335995,"uuid":"81636954","full_name":"jacklam718/react-native-carousel-component","owner":"jacklam718","description":"React Native Carousel Component for IOS \u0026 Android","archived":false,"fork":false,"pushed_at":"2017-07-30T17:20:57.000Z","size":4192,"stargazers_count":61,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-07T15:05:12.489Z","etag":null,"topics":["carousel","component","es6","javascript","react","react-native","react-native-component"],"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/jacklam718.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-11T07:04:23.000Z","updated_at":"2024-04-02T17:40:49.000Z","dependencies_parsed_at":"2022-09-11T08:22:39.186Z","dependency_job_id":null,"html_url":"https://github.com/jacklam718/react-native-carousel-component","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Freact-native-carousel-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Freact-native-carousel-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Freact-native-carousel-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Freact-native-carousel-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacklam718","download_url":"https://codeload.github.com/jacklam718/react-native-carousel-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223527705,"owners_count":17160091,"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","component","es6","javascript","react","react-native","react-native-component"],"created_at":"2024-11-07T14:10:28.623Z","updated_at":"2024-11-07T14:10:29.102Z","avatar_url":"https://github.com/jacklam718.png","language":"JavaScript","readme":"## React Native Carousel Component\nReact Native Carousel Component for iOS \u0026 Android.\n\nPull request are welcomed. Please follow the Airbnb style guide [Airbnb JavaScript](https://github.com/airbnb/javascript)\n\n\n[Try it with Exponent](https://exp.host/@jacklam718/carousel-demo)\n\n\u003cimg src=\"https://jacklam718.github.io/react-native-carousel-component/assets/carousel-component.gif\" width=\"250\"\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg src=\"https://jacklam718.github.io/react-native-carousel-component/assets/carousel-screenshot.png\" width=\"250\"\u003e\n\n## Installation\n\n`react-native \u003c= 0.4.3 install 'react-native-carousel-component: ^0.1.17'`\n\u003cbr\u003e\n`react-native \u003e= 0.4.4 install 'react-native-carousel-component: ^0.2.17'`\n\n```bash\nyarn add react-native-carousel-component\n# OR\nnpm install --save react-native-carousel-component\n```\n\n## Docs\n[Docs](https://github.com/jacklam718/react-native-carousel-component/tree/master/docs/README.md)\n\n## Example\n[Example App](https://github.com/jacklam718/react-native-carousel-component/blob/master/carousel-example/CarouselExample.js)\n\u003cbr /\u003e\n[Demo App for Demonstrate How To Use `CarouselComponent` +\n`Navigator` with `Navigator.NavigationBar` ](https://github.com/jacklam718/react-native-carousel-component/blob/master/carousel-demo/src/CarouselDemo.js)\n\n\n## Usage with `CorouselComponent`\n```javascript\nimport CarouselComponent, { CarouselCard } from 'react-native-carousel-component';\n\nconst cards = [\n  \u003cCarouselCard\n    key={0}\n    title=\"Title\"\n    description=\"Description\"\n  \u003e\n    // You can put your view here\n  \u003c/CarouselCard\u003e\n];\n\n\u003cCarouselComponent\n  ref={(carousel) =\u003e { this.carousel = carousel; }}\n  cards={cards}\n  title=\"Carousel Title\"\n  subTitle=\"Carousel Sub Title\"\n  showPageControl\n  leftItem={{\n    title: 'CLOSE',\n    layout: 'title',\n    onPress: this.dismiss,\n  }}\n\u003e\n  // You can put your view here\n\u003c/CarouselComponent\u003e\n```\n\n#### Note: If you uses `Navigator` with `Navigator.NavigationBar` in your app please put Navigator into `CarouselComponent`\n\n##### For example:\n```javascript\n\u003cCarouselComponent\n  ref={(carousel) =\u003e { this.carousel = carousel; }}\n  cards={cards}\n  title=\"Carousel Title\"\n  subTitle=\"Carousel Sub Title\"\n  showPageControl\n  leftItem={{\n    title: 'CLOSE',\n    layout: 'title',\n    onPress: this.dismiss,\n  }}\n\u003e\n  \u003cNavigator\n    ref={(navigator) =\u003e { this.navigator = navigator; }}\n    navigationBar={\u003cNavigator.NavigationBar /\u003e}\n    style={styles.navigator}\n  /\u003e\n\u003c/CarouselComponent\u003e\n```\n\n#### You can call `show` method open the carousel and call the `dismiss` to close the carousel\n```javascript\nthis.carousel.show(() =\u003e {\n  console.log('callback for show method')\n});\n\nthis.carousel.dismiss(() =\u003e {\n    console.log('callback for dismiss method')\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklam718%2Freact-native-carousel-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacklam718%2Freact-native-carousel-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklam718%2Freact-native-carousel-component/lists"}