{"id":16433261,"url":"https://github.com/vivekjm/react-native-animated-gallery","last_synced_at":"2025-03-21T04:32:35.432Z","repository":{"id":39741647,"uuid":"375809632","full_name":"vivekjm/react-native-animated-gallery","owner":"vivekjm","description":"🚀  Tiny and fast animated image gallery for react-native","archived":false,"fork":false,"pushed_at":"2022-08-18T12:12:59.000Z","size":52663,"stargazers_count":35,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-12T08:45:29.917Z","etag":null,"topics":["animated-image","gallery-viewer","imageviewer-component","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/vivekjm.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":"2021-06-10T19:30:20.000Z","updated_at":"2024-05-24T11:25:14.000Z","dependencies_parsed_at":"2022-09-26T21:02:15.298Z","dependency_job_id":null,"html_url":"https://github.com/vivekjm/react-native-animated-gallery","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivekjm%2Freact-native-animated-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivekjm%2Freact-native-animated-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivekjm%2Freact-native-animated-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivekjm%2Freact-native-animated-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vivekjm","download_url":"https://codeload.github.com/vivekjm/react-native-animated-gallery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811363,"owners_count":16884317,"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":["animated-image","gallery-viewer","imageviewer-component","react-native"],"created_at":"2024-10-11T08:45:34.664Z","updated_at":"2024-10-28T09:23:38.884Z","avatar_url":"https://github.com/vivekjm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Animated Gallery\r\n\r\n## ![npm](https://img.shields.io/npm/l/react-native-animated-gallery?style=for-the-badge) ![npm](https://img.shields.io/npm/v/react-native-animated-gallery?style=for-the-badge) ![](https://img.shields.io/npm/dw/react-native-animated-gallery?style=for-the-badge) ![](https://img.shields.io/npm/types/react-native-animated-gallery?style=for-the-badge)\r\n\r\n#\r\n\r\n#### 🚀 Tiny and fast animated image gallery with pinch/zoom support for react-native\r\n\r\n#\r\n\r\n![](https://media.giphy.com/media/geYcjlxk7GroFPeKOq/giphy.gif)            ![](https://media.giphy.com/media/pfd4l4hy9ZQqlKAgXE/giphy.gif)\r\n\r\n## Getting started\r\n\r\n`npm i @akumzy/react-native-animated-gallery --save`\r\n\r\nor\r\n\r\n`yarn add @akumzy/react-native-animated-gallery`\r\n\r\n#### iOS\r\n\r\nNo additional step is required.\r\n\r\n#### Android\r\n\r\nNo additional step is required.\r\n\r\n## Usage\r\n\r\nFirst of all, import the component.\r\n\r\n```javascript\r\nimport AnimatedGallery from \"@akumzy/react-native-animated-gallery\"\r\n```\r\n\r\nThen use it like this.\r\n\r\n```javascript\r\nimport * as React from \"react\"\r\nimport { Text, View } from \"react-native\"\r\nimport AnimatedGallery from \"@akumzy/react-native-animated-gallery\"\r\n\r\nexport default () =\u003e {\r\n  const images = [\r\n    {\r\n      id: 1,\r\n      url: \"https://images.pexels.com/photos/2347011/pexels-photo-2347011.jpeg?auto=compress\u0026cs=tinysrgb\u0026fit=crop\u0026h=1200\u0026w=800\",\r\n    },\r\n    {\r\n      id: 2,\r\n      url: \"https://images.pexels.com/photos/2387877/pexels-photo-2387877.jpeg?auto=compress\u0026cs=tinysrgb\u0026fit=crop\u0026h=1200\u0026w=800\",\r\n    },\r\n    {\r\n      id: 3,\r\n      url: \"https://images.pexels.com/photos/1624360/pexels-photo-1624360.jpeg?auto=compress\u0026cs=tinysrgb\u0026fit=crop\u0026h=1200\u0026w=800\",\r\n    },\r\n  ]\r\n\r\n  const Loader = () =\u003e {\r\n    return (\r\n      \u003cView style={{ justifyContent: \"center\", alignItems: \"center\", flex: 1 }}\u003e\r\n        \u003cText\u003eCustom Loader..\u003c/Text\u003e\r\n      \u003c/View\u003e\r\n    )\r\n  }\r\n\r\n  return (\r\n    \u003cView style={{ flex: 1, backgroundColor: \"#fff\" }}\u003e\r\n      \u003cAnimatedGallery\r\n        imageUrls={images}\r\n        renderLoader={\u003cLoader /\u003e}\r\n        disablefullScreen={false}\r\n        thumbBorderWidth={3}\r\n        thumbBorderColor={\"white\"}\r\n        spacing={8}\r\n        imageSize={90}\r\n        backgroundColor={\"#0000\"}\r\n        onEndReached={() =\u003e {\r\n          console.log(\"yay! end reached\")\r\n        }}\r\n        invertThumbDirection={false}\r\n        invertGalleryDirection={false}\r\n      /\u003e\r\n    \u003c/View\u003e\r\n  )\r\n}\r\n```\r\n\r\n## Props\r\n\r\n- [`imageUrls`](#imageUrls)\r\n- [`renderLoader`](#renderLoader)\r\n- [`imageSize`](#imageSize)\r\n- [`spacing`](#spacing)\r\n- [`thumbBorderWidth`](#thumbBorderWidth)\r\n- [`thumbBorderColor`](#thumbBorderColor)\r\n- [`disablefullScreen`](#disablefullScreen)\r\n- [`backgroundColor`](#backgroundColor)\r\n- [`onEndReached`](#onEndReached)\r\n- [`invertThumbDirection`](#invertThumbDirection)\r\n- [`invertGalleryDirection`](#invertGalleryDirection)\r\n\r\n---\r\n\r\n# Reference\r\n\r\n## Props\r\n\r\n### `imageUrls`\r\n\r\nProvides Data to the component\r\n\r\n| Type  | Required |\r\n| ----- | -------- |\r\n| Array | yes      |\r\n\r\n---\r\n\r\n### `renderLoader`\r\n\r\nCustom loader for component\r\n\r\n| Type         | Required |\r\n| ------------ | -------- |\r\n| ReactElement | no       |\r\n\r\n---\r\n\r\n### `imageSize`\r\n\r\nSet the size of the thumb nail to square proprtion\r\n\r\n| Type      | Required |\r\n| --------- | -------- |\r\n| imageSize | number   |\r\n\r\n---\r\n\r\n### `spacing`\r\n\r\nSet the sapcing between thumb nail.\r\n\r\n| Type    | Required |\r\n| ------- | -------- |\r\n| spacing | number   |\r\n\r\n---\r\n\r\n### `thumbBorderWidth`\r\n\r\nSet the border width for thumb nail.\r\n\r\n| Type   | Required |\r\n| ------ | -------- |\r\n| number | No       |\r\n\r\n---\r\n\r\n### `thumbBorderColor`\r\n\r\nSet the border color for thumb nail\r\n\r\n| Type   | Required |\r\n| ------ | -------- |\r\n| string | No       |\r\n\r\n---\r\n\r\n### `disablefullScreen`\r\n\r\nDisable the fullscreen view of image\r\n\r\n| Type    | Required |\r\n| ------- | -------- |\r\n| boolean | No       |\r\n\r\n### `backgroundColor`\r\n\r\nSet the backgroundColor for gallery when not in fullscreen mode\r\n\r\n| Type   | Required |\r\n| ------ | -------- |\r\n| string | No       |\r\n\r\n### `onEndReached`\r\n\r\nCalled when all rows have been rendered and the list has been scrolled to within onEndReachedThreshold of the bottom. The native scroll event is provided.\r\n\r\n| Type     | Required |\r\n| -------- | -------- |\r\n| function | No       |\r\n\r\n### `invertThumbDirection`\r\n\r\nReverses the direction of scroll. Uses scale transforms of -1.\r\n\r\n| Type    | Required |\r\n| ------- | -------- |\r\n| boolean | No       |\r\n\r\n### `invertGalleryDirection`\r\n\r\nReverses the direction of scroll of gallery. Uses scale transforms of -1.\r\n\r\n| Type    | Required |\r\n| ------- | -------- |\r\n| boolean | No       |\r\n\r\n---\r\n\r\n## Author\r\n\r\n\u003ctable\u003e\r\n  \u003ctr\u003e\r\n    \u003ctd\u003e\r\n      \u003cimg src=\"https://avatars.githubusercontent.com/u/24496671?v=4\" width=\"100\"  style=\"border-radius:50%\"\u003e\r\n    \u003c/td\u003e\r\n    \u003ctd\u003e\r\n      Vivek JM\u003cbr /\u003e\r\n      \u003ca href=\"mailto:vivekjm77@gmail.com\"\u003evivekjm77@gmail.com\u003c/a\u003e\u003cbr /\u003e\r\n    \u003c/td\u003e\r\n  \u003c/tr\u003e\r\n\u003c/table\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivekjm%2Freact-native-animated-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvivekjm%2Freact-native-animated-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivekjm%2Freact-native-animated-gallery/lists"}