{"id":26447310,"url":"https://github.com/faichou/imagepreviewer","last_synced_at":"2025-03-18T13:51:43.220Z","repository":{"id":65482618,"uuid":"131781020","full_name":"FaiChou/ImagePreviewer","owner":"FaiChou","description":"A react native image previewer !","archived":false,"fork":false,"pushed_at":"2023-05-28T12:30:27.000Z","size":656,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T16:58:20.720Z","etag":null,"topics":["imageviewer","react-native"],"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/FaiChou.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":"2018-05-02T01:18:15.000Z","updated_at":"2023-05-28T12:30:30.000Z","dependencies_parsed_at":"2023-01-25T10:45:32.956Z","dependency_job_id":null,"html_url":"https://github.com/FaiChou/ImagePreviewer","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2FImagePreviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2FImagePreviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2FImagePreviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaiChou%2FImagePreviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FaiChou","download_url":"https://codeload.github.com/FaiChou/ImagePreviewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244236107,"owners_count":20420752,"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":["imageviewer","react-native"],"created_at":"2025-03-18T13:51:42.510Z","updated_at":"2025-03-18T13:51:43.214Z","avatar_url":"https://github.com/FaiChou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ImagePreviewer [![Build Status](https://travis-ci.org/FaiChou/ImagePreviewer.svg?branch=master)](https://travis-ci.org/FaiChou/ImagePreviewer)[![npm](https://img.shields.io/npm/v/npm.svg)](https://www.npmjs.com/package/rc-image-previewer)![license](https://img.shields.io/github/license/mashape/apistatus.svg)\n\n![image-previewer-demo](https://raw.githubusercontent.com/FaiChou/faichou.github.io/master/img/qiniu/image-previewer-demo.gif)\n\n[Demo gif here if not loaded.](https://raw.githubusercontent.com/FaiChou/faichou.github.io/master/img/qiniu/image-previewer-demo.gif)\n\n### How to use\n\nInstall package:\n\n```\nnpm install --save rc-image-previewer\n```\n\nImport to your app:\n\n```\nimport ImagePreviewer from 'rc-image-previewer';\n```\n\nUse the component:\n\n```\nconst { width } = Dimensions.get('window');\n\nexport default class App extends React.Component {\n  render() {\n    const ImgWidth = width;\n    const ImgHeight = ImgWidth * 0.6;\n    return (\n      \u003cView style={{\n        flex: 1,\n        backgroundColor: '#fff',\n        alignItems: 'center',\n        justifyContent: 'center',\n      }}\u003e\n        \u003cImagePreviewer\n          source={MountHuang}\n          style={{\n            width: ImgWidth,\n            height: ImgHeight,\n          }}\n          resizeMode=\"stretch\"\n        /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n```\n\n### API\n\nAPI table\n\nAPI name       | Usage\n---------------|----------------------------------------\nstyle          | The style of element.\nsource         | The image source, same as \u003cImage /\u003e source.\nresizeMode     | The image resize mode, default is contain.(Optional)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaichou%2Fimagepreviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaichou%2Fimagepreviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaichou%2Fimagepreviewer/lists"}