{"_id":"@clip-sub/react-native-photo-view-ex","_rev":"3-ef186ea19dd38dd44bc07251f6f4d2a7","name":"@clip-sub/react-native-photo-view-ex","dist-tags":{"latest":"1.5.0"},"versions":{"1.2.0":{"name":"@clip-sub/react-native-photo-view-ex","version":"1.2.0","description":"Displaying photos with pinch-to-zoom, based on react-native-photo-view","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","author":{"name":"Alexander Pantyukhov","email":"alwxndr@gmail.com"},"contributors":[{"name":"Alberto Martínez https://github.com/aMarCruz"},{"name":"Quan Pham https://github.com/Doko-Demo-Doa"}],"scripts":{"test":"jest","typecheck":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepack":"bob build","release":"release-it","example":"yarn --cwd example","bootstrap":"yarn example && yarn install && yarn example pods","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build"},"license":"MIT","keywords":["react-native","react-component","ios","android","gallery","lightbox","pinch","pinch-to-zoom","mobile"],"homepage":"https://github.com/layerinfinity/react-native-photo-view-ex","bugs":{"url":"https://github.com/layerinfinity/react-native-photo-view-ex/issues"},"repository":{"type":"git","url":"git+https://github.com/layerinfinity/react-native-photo-view-ex.git"},"devDependencies":{"@types/react":"^18.0.0","@types/react-native":"^0.70.0","react-native":">=0.70.0","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","typescript":"^5.0.0"},"peerDependencies":{"react-native":">=0.67.1"},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"eslintIgnore":["node_modules/","lib/"],"gitHead":"1248b67a0a5012b172faa11b0d521d18bfd816e5","_id":"@clip-sub/react-native-photo-view-ex@1.2.0","_nodeVersion":"18.15.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-Mzn6rCmDXrfxLssn9F2W3xm4nRK7gvTpBe2KueXirS7q2MtI/hFiieOI8hsu2OdRnXSp7QNWN2jFmu7SxaSSrQ==","shasum":"cabe54268e372063ee4eed4965d8c1f2255d04a3","tarball":"https://registry.npmjs.org/@clip-sub/react-native-photo-view-ex/-/react-native-photo-view-ex-1.2.0.tgz","fileCount":34,"unpackedSize":75778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvxcEC4mIqnsG6+ZZRneokbSvvVZswNPXYzhJUgpnPagIgM19JXbnD06/bRerpUcfE0Nyd8u8znOaqgzHrrgWhIbk="}]},"_npmUser":{"name":"clipsub","email":"doraemonfanclub@gmail.com"},"directories":{},"maintainers":[{"name":"clipsub","email":"doraemonfanclub@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-photo-view-ex_1.2.0_1688619598228_0.4050785338201788"},"_hasShrinkwrap":false},"1.3.0":{"name":"@clip-sub/react-native-photo-view-ex","version":"1.3.0","description":"Displaying photos with pinch-to-zoom, based on react-native-photo-view","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","author":{"name":"Alexander Pantyukhov","email":"alwxndr@gmail.com"},"contributors":[{"name":"Alberto Martínez https://github.com/aMarCruz"},{"name":"Quan Pham https://github.com/Doko-Demo-Doa"}],"scripts":{"test":"jest","typecheck":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepack":"bob build","release":"release-it","example":"yarn --cwd example","bootstrap":"yarn example && yarn install && yarn example pods","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build"},"license":"MIT","keywords":["react-native","react-component","ios","android","gallery","lightbox","pinch","pinch-to-zoom","mobile"],"homepage":"https://github.com/layerinfinity/react-native-photo-view-ex","bugs":{"url":"https://github.com/layerinfinity/react-native-photo-view-ex/issues"},"repository":{"type":"git","url":"git+https://github.com/layerinfinity/react-native-photo-view-ex.git"},"devDependencies":{"@types/react":"^18.0.0","@types/react-native":"^0.70.0","react-native":">=0.70.0","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","typescript":"^5.0.0"},"peerDependencies":{"react-native":">=0.67.1"},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"eslintIgnore":["node_modules/","lib/"],"gitHead":"736f5e256f9561db3769205c17a6a38ca4053159","_id":"@clip-sub/react-native-photo-view-ex@1.3.0","_nodeVersion":"18.15.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-4tUhZ4PcX4P+hODkbhd34DAHZLRfrqEKWvp2V2TEUAN/l8+mSbj7ftV4Pn8t5xabTtLLTpNOOsc6dGQAg9yKEw==","shasum":"f2325359d02c6d53b64ae79549cc0c167f29fb8d","tarball":"https://registry.npmjs.org/@clip-sub/react-native-photo-view-ex/-/react-native-photo-view-ex-1.3.0.tgz","fileCount":34,"unpackedSize":75682,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFkwDY7y3m57JJmbWK4YEUPFqjAVoBleS1sAjG7GWpHZAiAPy6Wv9FpjFPp7dRTqHfdJWjqcaDeM0iy2elZvIjv5pQ=="}]},"_npmUser":{"name":"clipsub","email":"doraemonfanclub@gmail.com"},"directories":{},"maintainers":[{"name":"clipsub","email":"doraemonfanclub@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-photo-view-ex_1.3.0_1688620864035_0.8968564997545423"},"_hasShrinkwrap":false},"1.4.0":{"name":"@clip-sub/react-native-photo-view-ex","version":"1.4.0","description":"Displaying photos with pinch-to-zoom, based on react-native-photo-view","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","author":{"name":"Alexander Pantyukhov","email":"alwxndr@gmail.com"},"contributors":[{"name":"Alberto Martínez https://github.com/aMarCruz"},{"name":"Quan Pham https://github.com/Doko-Demo-Doa"}],"scripts":{"test":"jest","typecheck":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepack":"bob build","release":"release-it","example":"yarn --cwd example","bootstrap":"yarn example && yarn install && yarn example pods","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build"},"license":"MIT","keywords":["react-native","react-component","ios","android","gallery","lightbox","pinch","pinch-to-zoom","mobile"],"homepage":"https://github.com/layerinfinity/react-native-photo-view-ex","bugs":{"url":"https://github.com/layerinfinity/react-native-photo-view-ex/issues"},"repository":{"type":"git","url":"git+https://github.com/layerinfinity/react-native-photo-view-ex.git"},"devDependencies":{"@types/react":"^18.0.0","@types/react-native":"^0.70.0","react-native":">=0.70.0","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","typescript":"^5.0.0"},"peerDependencies":{"react-native":">=0.67.1"},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"eslintIgnore":["node_modules/","lib/"],"gitHead":"5bf1b237197a3ea7607cb9eb5f3e6c78cbf2218e","_id":"@clip-sub/react-native-photo-view-ex@1.4.0","_nodeVersion":"18.15.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-osMuMYnm3kTdUwrADsZ1Q6TIUYuiA5OI9pdX/JMsTZFwovNJluDhGlLrf9ohmDcUd+xIRvGgWCscSGgVNUM1GA==","shasum":"f55fb16af31a5fdacd521103cb1589c814102ec1","tarball":"https://registry.npmjs.org/@clip-sub/react-native-photo-view-ex/-/react-native-photo-view-ex-1.4.0.tgz","fileCount":34,"unpackedSize":75405,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHZBeVAvJ25WcS7gYKxgAUoQ6q8pJuVvHFE+6zn+Tc4gIgKbQ3mOYcfOnlzxgWxXBMODbqM9rkMYaxSkZjEyvEDEI="}]},"_npmUser":{"name":"clipsub","email":"doraemonfanclub@gmail.com"},"directories":{},"maintainers":[{"name":"clipsub","email":"doraemonfanclub@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-photo-view-ex_1.4.0_1688621073381_0.5557606024834982"},"_hasShrinkwrap":false},"1.5.0":{"name":"@clip-sub/react-native-photo-view-ex","version":"1.5.0","description":"Displaying photos with pinch-to-zoom, based on react-native-photo-view","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","author":{"name":"Alexander Pantyukhov","email":"alwxndr@gmail.com"},"contributors":[{"name":"Alberto Martínez https://github.com/aMarCruz"},{"name":"Quan Pham https://github.com/Doko-Demo-Doa"}],"scripts":{"test":"jest","typecheck":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepack":"bob build","release":"release-it","example":"yarn --cwd example","bootstrap":"yarn example && yarn install && yarn example pods","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build"},"license":"MIT","keywords":["react-native","react-component","ios","android","gallery","lightbox","pinch","pinch-to-zoom","mobile"],"homepage":"https://github.com/layerinfinity/react-native-photo-view-ex","bugs":{"url":"https://github.com/layerinfinity/react-native-photo-view-ex/issues"},"repository":{"type":"git","url":"git+https://github.com/layerinfinity/react-native-photo-view-ex.git"},"devDependencies":{"@types/react":"^18.0.0","@types/react-native":"^0.70.0","react-native":">=0.70.0","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","typescript":"^5.0.0"},"peerDependencies":{"react-native":">=0.67.1"},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"eslintIgnore":["node_modules/","lib/"],"gitHead":"5bf1b237197a3ea7607cb9eb5f3e6c78cbf2218e","_id":"@clip-sub/react-native-photo-view-ex@1.5.0","_nodeVersion":"18.15.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-ivsjBppGrB0iNMQXkT+qDAzeGB7I8DKlC5lqV5AWF+JjvlEicDyGfLwf6kMYwMgmLH0jixINnJ/EQQvHLmjjXA==","shasum":"77c406aa02a3ee7b86895b8c8c324a8dea26d088","tarball":"https://registry.npmjs.org/@clip-sub/react-native-photo-view-ex/-/react-native-photo-view-ex-1.5.0.tgz","fileCount":34,"unpackedSize":75489,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG9radDpQtSpaCtfzRt2DCU0ftVSmbjIoE1ZgQuu6V4wAiA3XoYpo/u8Cg9bpZp5UMUPEOB4aMrlIUpFHtMMFniPXQ=="}]},"_npmUser":{"name":"clipsub","email":"doraemonfanclub@gmail.com"},"directories":{},"maintainers":[{"name":"clipsub","email":"doraemonfanclub@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-photo-view-ex_1.5.0_1688621324592_0.11332887638446687"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-06T04:59:58.102Z","1.2.0":"2023-07-06T04:59:58.469Z","modified":"2023-07-06T05:28:44.913Z","1.3.0":"2023-07-06T05:21:04.216Z","1.4.0":"2023-07-06T05:24:33.694Z","1.5.0":"2023-07-06T05:28:44.739Z"},"maintainers":[{"name":"clipsub","email":"doraemonfanclub@gmail.com"}],"description":"Displaying photos with pinch-to-zoom, based on react-native-photo-view","homepage":"https://github.com/layerinfinity/react-native-photo-view-ex","keywords":["react-native","react-component","ios","android","gallery","lightbox","pinch","pinch-to-zoom","mobile"],"repository":{"type":"git","url":"git+https://github.com/layerinfinity/react-native-photo-view-ex.git"},"contributors":[{"name":"Alberto Martínez https://github.com/aMarCruz"},{"name":"Quan Pham https://github.com/Doko-Demo-Doa"}],"author":{"name":"Alexander Pantyukhov","email":"alwxndr@gmail.com"},"bugs":{"url":"https://github.com/layerinfinity/react-native-photo-view-ex/issues"},"license":"MIT","readme":"# react-native-photo-view-ex\n\n[![License][license-badge]][license-url]\n[![npm Version][npm-badge]][npm-url]\n\nProvides custom Image view for React Native that allows to perform pinch-to-zoom on images. Works on both iOS and Android.\n\nThis component uses [PhotoDraweeView](https://github.com/ongakuer/PhotoDraweeView) for Android and [MWPhotobrowser](https://github.com/mwaterfall/MWPhotoBrowser) on iOS.\n\n## About this fork\n\nThis fork is based on the great work of @alwx (Alexander Pantyuhov) and has this changes:\n\n- Android Build Tools 28.0.3 and targetSdkVersion 28 (configurable).\n- Peer dependent on react-native v0.57 and above.\n- Using the same version of [fresco](https://github.com/facebook/fresco) included by react-native.\n- Updated dependencies\n  - [Relex photodraweeview](https://github.com/ongakuer/PhotoDraweeView) v1.1.3\n  - Android plugin for Gradle v4.10.x\n- Changes to gradle config to support the new version.\n- Changes to some properties, mainly `androidScaleType` replaced by `resizeMode`.\n- PhotoView as PureComponent.\n- Minor fixes.\n- Typescript definitions.\n\nAll this is to adapt it better to my current project (it is not tested on iOS), but feel free to use it.\n\n## Usage\n\n```javascript\nimport PhotoView from 'react-native-photo-view-ex';\n```\n\nBasics:\n\n```jsx\n  <PhotoView\n    source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}}\n    minimumZoomScale={0.5}\n    maximumZoomScale={3}\n    resizeMode=\"center\"\n    onLoad={() => console.log(\"Image loaded!\")}\n    style={{width: 300, height: 300}}\n  />\n```\n\n### Properties\n\n| Property | Type | Description\n|----------|------|-------------\n| source | Object | The same as `source` for other React images, except that it does not handle arrays.\n| loadingIndicatorSource | Object | Similarly to `source`, but used to render the loading indicator. **Must be a local image**\n| fadeDuration | int | Duration of the fade, in milliseconds.\n| scale | float | Zoom scale\n| maximumZoomScale | float | The maximum allowed zoom scale. The default value is 3.0\n| minimumZoomScale | float | The minimum allowed zoom scale. The default value is 1.0\n| resizeMode | String | **Android only**: One of \"center\", \"contain\", \"cover\", \"fitStart\", \"fitEnd\", \"stretch\". The default is \"cover\"\n| style | Array or Object | Subset of react-native style. See [index.d.ts](https://github.com/aMarCruz/react-native-photo-view/blob/dev/index.d.ts)\n| showsHorizontalScrollIndicator | bool | **iOS only**: When true, shows a horizontal scroll indicator. The default value is `true`.\n| showsVerticalScrollIndicator | bool | **iOS only**: When true, shows a vertical scroll indicator. The default value is `true`.\n| zoomTransitionDuration | int | **Android only**: Double-tap zoom transition duration, in milliseconds.\n\n### Events\n\n| Name | Parameter \\* | Description\n|------|--------------|-------------\n| onError | - | Invoked on load error.\n| onLayout | `layout: {x, y, width, height}` | Invoked on mount and layout changes.\n| onLoad | - | Invoked when load completes successfully.\n| onLoadEnd | - | Invoked when load either succeeds or fails.\n| onLoadStart | - | Invoked on load start.\n| onProgress | `loaded, total` | **iOS only**: Invoked on download progress.\n| onScale | `scale, scaleFactor, focusX, focusY` | Callback function called on scale changes.\n| onTap | `scale, x, y` | Callback function called on image tap.\n| onViewTap | `scale, x, y` | Callback function called on tap outside of the image.\n\n\\* In the `nativeEvent` property.\n\n## Compared to [react-native-image-zoom](https://github.com/Anthonyzou/react-native-image-zoom)\n\nreact-native-image-zoom functionality is similar, but there are several major differencies:\n\n- PhotoView is based on PhotoDraweeView which is the \"PhotoView For Fresco\". It works better, it supports several important callbacks out-of-box and it is, actually, recommended by Chris Banes, because his [PhotoView](https://github.com/chrisbanes/PhotoView) (base for react-native-image-zoom) doesn't completely support Facebook Fresco.\n- PhotoView has more options like fadeDuration and minimumZoomScale/maximumZoomScale and more important callbacks.\n- PhotoView is written in the same manner as default React Image, and it supports most of the features Image has (the goal is to be fully compaitable with Image and support absolutely everything).\n- It is possible to use PhotoView as a container (currently iOS only)!\n\n## Automatic installation\n\nJust two simple steps:\n\n```bash\nyarn add react-native-photo-view-ex\nreact-native link react-native-photo-view-ex\n```\n\n## Manual installation\n\n### Android\n\n1. Add these lines to `android/settings.gradle`\n\n    ```groovy\n    include ':react-native-photo-view-ex'\n    project(':react-native-photo-view-ex').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-photo-view-ex/android')\n    ```\n\n2. Add the dependency to `android/app/build.gradle`\n\n    ```groovy\n    dependencies {\n      implementation project(':react-native-photo-view-ex')\n    }\n    ```\n\n3. Register `PhotoViewPackage` in your `MainApplication.java`:\n\n    ```java\n    import io.amarcruz.photoview.PhotoViewPackage;\n\n    // ...\n\n    public class MainActivity extends ReactActivity {\n      // ...\n\n      @Override\n      protected List<ReactPackage> getPackages() {\n        return Arrays.<ReactPackage>asList(\n            new MainReactPackage(),\n            new PhotoViewPackage() // add this manager\n        );\n      }\n\n      // ...\n    }\n    ```\n\n### iOS\n\n1. Add this line to your podfile\n\n    ```pod\n    pod 'react-native-photo-view-ex', path: '../node_modules/react-native-photo-view-ex'\n    ```\n\n2. Run `pod install`\n\n[license-badge]:  https://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]:    https://github.com/aMarCruz/react-native-photo-view-ex/blob/dev/LICENSE\n[npm-badge]:      https://img.shields.io/npm/v/react-native-photo-view-ex.svg\n[npm-url]:        https://www.npmjs.com/package/react-native-photo-view-ex\n","readmeFilename":"README.md"}