{"id":19095735,"url":"https://github.com/shahen94/react-native-image-fit","last_synced_at":"2025-04-16T14:25:59.466Z","repository":{"id":57337584,"uuid":"72247248","full_name":"shahen94/react-native-image-fit","owner":"shahen94","description":"Image Viewer component for RN, similar to Facebook or LinkedIn","archived":false,"fork":false,"pushed_at":"2019-09-05T07:18:56.000Z","size":15,"stargazers_count":100,"open_issues_count":1,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T23:01:52.970Z","etag":null,"topics":["image-viewer","imageviewer-component","react","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shahen94.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":"2016-10-28T22:23:59.000Z","updated_at":"2024-02-01T14:04:23.000Z","dependencies_parsed_at":"2022-09-10T11:01:26.962Z","dependency_job_id":null,"html_url":"https://github.com/shahen94/react-native-image-fit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahen94%2Freact-native-image-fit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahen94%2Freact-native-image-fit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahen94%2Freact-native-image-fit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahen94%2Freact-native-image-fit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shahen94","download_url":"https://codeload.github.com/shahen94/react-native-image-fit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249250303,"owners_count":21237871,"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":["image-viewer","imageviewer-component","react","react-native"],"created_at":"2024-11-09T03:34:56.541Z","updated_at":"2025-04-16T14:25:59.447Z","avatar_url":"https://github.com/shahen94.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/FnENSxi"],"categories":[],"sub_categories":[],"readme":"# react-native-image-fit\nImageViewer component for RN\n\n### Installation\n\n```sh\n$ npm install --save react-native-image-fit\n```\nor\n\n```sh\n$ yarn add react-native-image-fit\n```\n\n### Usage\n\n```javascript\nimport { ImageViewer } from 'react-native-image-fit';\n\nexport const App = () =\u003e (\n  \u003cImageViewer\n    disabled={false} // by default\n    source={require('./photo.png')} // or { url: 'https://...' }\n    doubleTapEnabled={true} // by default double tap will zoom image\n    onMove={(e, gestureState) =\u003e null}\n    onPress={(opening) =\u003e console.log(opening)}\n    mainImageStyle={styles.someStyle}\n    zoomedImageStyle={styles.zoomedImageStyle}\n    mainImageProps={{\n        resizeMode: 'contain'\n    }}\n    zoomedImageProps={{\n        resizeMode: 'contain'\n    }}\n  /\u003e\n)\n```\n\n### ImageViewer Component example\n\n![ezgif-3352117320](https://cloud.githubusercontent.com/assets/13334788/19832054/dc83a9f4-9e2a-11e6-9023-ccd80fb944b5.gif)\n\n\n##\nIf this project was helpful to you, please \u003chtml\u003e\n \u003ca href=\"https://www.buymeacoffee.com/FnENSxi\" target=\"_blank\"\u003e\u003cimg src=\"https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/yellow_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n \u003c/html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahen94%2Freact-native-image-fit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahen94%2Freact-native-image-fit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahen94%2Freact-native-image-fit/lists"}