{"id":20247885,"url":"https://github.com/capdilla/react-native-galery-carousel","last_synced_at":"2025-04-10T22:19:27.339Z","repository":{"id":57337179,"uuid":"87358958","full_name":"capdilla/react-native-galery-carousel","owner":"capdilla","description":"Galery carousel for react native","archived":false,"fork":false,"pushed_at":"2017-05-28T23:10:09.000Z","size":4,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T19:21:39.259Z","etag":null,"topics":["carousel","carousel-plugin","image","image-viewer","react-native","react-native-carousel"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/capdilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-05T21:38:30.000Z","updated_at":"2018-09-04T16:03:23.000Z","dependencies_parsed_at":"2022-09-10T02:52:00.331Z","dependency_job_id":null,"html_url":"https://github.com/capdilla/react-native-galery-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/capdilla%2Freact-native-galery-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Freact-native-galery-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Freact-native-galery-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Freact-native-galery-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capdilla","download_url":"https://codeload.github.com/capdilla/react-native-galery-carousel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248306226,"owners_count":21081644,"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","carousel-plugin","image","image-viewer","react-native","react-native-carousel"],"created_at":"2024-11-14T09:43:48.542Z","updated_at":"2025-04-10T22:19:27.321Z","avatar_url":"https://github.com/capdilla.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-galery-carousel\nGalery carousel for react native\n\n\n\n## Demo\n\n![react-native-galery-carousel](https://media.giphy.com/media/3oKIPuWr6Mp7bOtYVG/giphy.gif)\n![react-native-galery-carousel](https://media.giphy.com/media/3oKIPj1guAZsLVqQfK/giphy.gif)\n\n\n## Usage\n\n```\n$ npm install --save react-native-galery-carousel\n```\n\n```javascript\nconst imagesDemo = [\n    {\n        path: '/UYiroysl.jpg'\n    },\n    {  \n        path: '/UPrs1EWl.jpg'\n    },\n    {    \n        path: '/MABUbpDl.jpg'\n    },\n    {    \n        path: '/KZsmUi2l.jpg'\n    },\n    {    \n        path: '/2nCt3Sbl.jpg'\n    },\n    {    \n        path: '/lceHsT6l.jpg'\n    }\n];\nimport GaleryCarousel from 'react-native-galery-carousel';\n\n    render () {\n      \u003cView\u003e\n        \u003cGaleryCarousel\n          dataImage={imagesDemo}\n          joinFirst={'http://i.imgur.com'}\n          defaultImageIndex={2}\n          onLongPress={(key,element)=\u003e{console.log(key,element)}}\n          mainImageComponents={\n            \u003cView style={{flex:1,backgroundColor:\"transparent\"}}\u003e\n              \u003cText style={{color:\"#fff\"}}\u003eHello\u003c/Text\u003e\n            \u003c/View\u003e\n          }\n        /\u003e\n      \u003c/View\u003e\n    }\n```\n\n## Props\n\nProp | Description | Type | Default\n------ | ------ | ------ | ------\n**dataImage** | the array of the image to show in the carousel | array | `[]`\n**getImageFrom** | the key of the array where you wanna get the image | string | `\"path\"`\n**joinFirst** | if you wanna join a link before **example** https://my-host-name.com/ `path` | string | `\"\"`\n**joinLast** | if you wanna join string after **example** `path`/key=\"1255665\" | string | `\"\"`\n**defaultImageIndex** | index of the first image to show | Number | `1`\n**mainImageComponents** | if you wanna render a component in the Main image | Component | `\u003cView/\u003e`\n**mainHeight** | size of the galery carousel | Number | `280`\n**onLongPress** | each item of the carousel | function | `function`\n\n\n## TODO\n- [x] Implement 'onLongPress' in the scrollView images\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapdilla%2Freact-native-galery-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapdilla%2Freact-native-galery-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapdilla%2Freact-native-galery-carousel/lists"}