{"id":20163824,"url":"https://github.com/systemlight/react-wb-imageviewer","last_synced_at":"2026-05-08T12:42:09.652Z","repository":{"id":39134250,"uuid":"257563568","full_name":"SystemLight/react-wb-imageviewer","owner":"SystemLight","description":":clapper:  Images viewer is a react component use in mobile website App, that function same as Weibo native viewer.【移动端图片放大查看器】","archived":false,"fork":false,"pushed_at":"2023-03-15T02:48:27.000Z","size":1504,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-14T03:38:05.964Z","etag":null,"topics":["images","javascript","react","viewer","weibo"],"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/SystemLight.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-21T10:45:24.000Z","updated_at":"2022-07-03T09:51:01.000Z","dependencies_parsed_at":"2025-01-13T14:35:32.408Z","dependency_job_id":null,"html_url":"https://github.com/SystemLight/react-wb-imageviewer","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2142857142857143,"last_synced_commit":"a022c96c26cd57974a15356b041113943e007296"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemLight%2Freact-wb-imageviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemLight%2Freact-wb-imageviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemLight%2Freact-wb-imageviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemLight%2Freact-wb-imageviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SystemLight","download_url":"https://codeload.github.com/SystemLight/react-wb-imageviewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241600492,"owners_count":19988715,"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":["images","javascript","react","viewer","weibo"],"created_at":"2024-11-14T00:31:58.860Z","updated_at":"2026-05-08T12:42:09.543Z","avatar_url":"https://github.com/SystemLight.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-wb-imageviewer\n\n[![NPM version](https://img.shields.io/npm/v/react-wb-imageviewer.svg)](https://www.npmjs.com/package/react-wb-imageviewer)\n\n\u003e 基于react的一个超级简易的移动端图片查看器。\n\n### 安装\n\n```\nnpm i react-wb-imageviewer\n```\n\n### 使用举例\n\n```\n\u003cdiv id=\"app\"\u003e\u003c/div\u003e\n\n\u003cscript src=\"https://unpkg.com/@babel/standalone/babel.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/react@latest/umd/react.development.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/react-dom@latest/umd/react-dom.development.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"./index.umd.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/babel\"\u003e\n  function App() {\n    let [open, setOpen] = React.useState(false)\n\n    return (\n      \u003cdiv\u003e\n        \u003cbutton onClick={() =\u003e {\n          setOpen(true)\n        }}\u003e打开图片\n        \u003c/button\u003e\n\n        \u003cWbImageViewer visibility={open}\n                       src={'https://t7.baidu.com/it/u=2291349828,4144427007\u0026fm=193\u0026f=GIF'}\n                       onClose={() =\u003e {\n                         setOpen(false)\n                       }} /\u003e\n      \u003c/div\u003e\n    )\n  }\n\n  ReactDOM.createRoot(\n    document.querySelector('#app')\n  ).render(\u003cApp /\u003e)\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemlight%2Freact-wb-imageviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemlight%2Freact-wb-imageviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemlight%2Freact-wb-imageviewer/lists"}