{"id":15837029,"url":"https://github.com/afeiship/react-smart-photo","last_synced_at":"2025-11-03T15:03:10.354Z","repository":{"id":57123012,"uuid":"126684292","full_name":"afeiship/react-smart-photo","owner":"afeiship","description":"The most easy to use responsive image viewer especially for mobile devices for react.","archived":false,"fork":false,"pushed_at":"2021-02-19T06:44:15.000Z","size":274,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T03:54:45.022Z","etag":null,"topics":["fancybox","gallery","images","lightbox","photo","preview","react","swiper","tiny"],"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-25T09:58:41.000Z","updated_at":"2022-11-21T06:31:18.000Z","dependencies_parsed_at":"2022-08-24T14:57:10.033Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/react-smart-photo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-smart-photo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-smart-photo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-smart-photo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-smart-photo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-smart-photo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243766686,"owners_count":20344797,"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":["fancybox","gallery","images","lightbox","photo","preview","react","swiper","tiny"],"created_at":"2024-10-05T15:20:32.152Z","updated_at":"2025-11-03T15:03:10.303Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-smart-photo\n\u003e The most easy to use responsive image viewer especially for mobile devices for react.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install -S @jswork/react-smart-photo\n```\n\n## properties\n| Name      | Type   | Required | Default | Description                                                     |\n| --------- | ------ | -------- | ------- | --------------------------------------------------------------- |\n| className | string | false    | -       | The extended className for component.                           |\n| name      | string | false    | -       | The group name.                                                 |\n| items     | array  | false    | []      | Image source set.                                               |\n| options   | object | false    | -       | SmartPhoto options. see: https://github.com/appleple/SmartPhoto |\n\n\n## usage\n1. import css\n  ```scss\n  // or use sass\n  @import \"~smartphoto/scss/smartphoto.scss\";\n  @import \"~@jswork/react-smart-photo/dist/style.scss\";\n\n  // customize your styles:\n  $react-smart-photo-options: ()\n  ```\n2. import js\n  ```js\n  import ReactDemokit from '@jswork/react-demokit';\n  import React from 'react';\n  import ReactDOM from 'react-dom';\n  import ReactSmartPhoto from '@jswork/react-smart-photo';\n  import NxRandomAvatar from '@jswork/next-random-avatar';\n  import './assets/style.scss';\n\n  class App extends React.Component {\n    constructor(props) {\n      super(props);\n      this.state = {\n        items: NxRandomAvatar.women(5).map((item) =\u003e {\n          return {\n            id: '80',\n            href: item,\n            src: item\n          };\n        })\n      };\n    }\n    render() {\n      const { items } = this.state;\n      return (\n        \u003cReactDemokit\n          className=\"p-3 app-container\"\n          url=\"https://github.com/afeiship/react-smart-photo\"\u003e\n          \u003cReactSmartPhoto\n            name=\"g1\"\n            items={[\n              {\n                href: NxRandomAvatar.lego(),\n                src: NxRandomAvatar.lego(),\n                id: '80'\n              }\n            ]}\n          /\u003e\n\n          \u003chr /\u003e\n\n          \u003cReactSmartPhoto name=\"g2\" items={items} /\u003e\n        \u003c/ReactDemokit\u003e\n      );\n    }\n  }\n\n  ReactDOM.render(\u003cApp /\u003e, document.getElementById('app'));\n\n  ```\n\n## documentation\n- https://afeiship.github.io/react-smart-photo/\n\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-smart-photo/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-smart-photo\n[version-url]: https://npmjs.org/package/@jswork/react-smart-photo\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-smart-photo\n[license-url]: https://github.com/afeiship/react-smart-photo/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-smart-photo\n[size-url]: https://github.com/afeiship/react-smart-photo/blob/master/dist/react-smart-photo.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-smart-photo\n[download-url]: https://www.npmjs.com/package/@jswork/react-smart-photo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-smart-photo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-smart-photo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-smart-photo/lists"}