{"_id":"@aaxis/react-native-fast-image","_rev":"3-faf7aa17424b6f86e1bc18d7885fd6f8","name":"@aaxis/react-native-fast-image","dist-tags":{"latest":"8.3.6"},"versions":{"8.3.4":{"name":"@aaxis/react-native-fast-image","version":"8.3.4","description":"FastImage, performant React Native image component.","keywords":["cache","cached","fastimage","image","priority"],"homepage":"https://github.com/DylanVann/react-native-fast-image#readme","bugs":{"url":"https://github.com/DylanVann/react-native-fast-image/issues"},"repository":{"type":"git","url":"git+https://github.com/DylanVann/react-native-fast-image.git"},"license":"(MIT AND Apache-2.0)","author":{"name":"Zachary"},"main":"dist/index.cjs.js","module":"dist/index.js","typings":"dist/index.d.ts","scripts":{"build":"dv-scripts build && cp src/index.js.flow dist/index.js.flow","lint":"dv-scripts lint","release":"dv-scripts release","test":"dv-scripts test"},"prettier":{"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"all"},"eslintConfig":{"extends":"dv-scripts"},"jest":{"modulePathIgnorePatterns":["ReactNativeFastImageExample*","ReactNativeFastImageExampleServer*"],"preset":"react-native"},"devDependencies":{"@babel/core":"^7.10.5","@babel/runtime":"^7.10.5","@types/jest":"^26.0.4","@types/react":"^16.9.23","@types/react-native":"^0.61.17","@types/react-test-renderer":"^16.9.2","babel-jest":"^24.9.0","dv-scripts":"^1.4.2","eslint-config-dv-scripts":"^1.1.1","jest":"^24.9.0","metro-react-native-babel-preset":"^0.56.0","prettier":"^2.0.5","react":"16.9.0","react-native":"0.61.5","react-test-renderer":"16.9.0","typescript":"^3.9.7"},"peerDependencies":{"react":"^16.8.6","react-native":">=0.60.0"},"gitHead":"0439f7190f141e51a391c84890cdd8a7067c6ad3","_id":"@aaxis/react-native-fast-image@8.3.4","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GElSkihKOeBNL6wSDBV8oxejXhz5MsDsNDVo1TGQg+iSMNstEw3eDo4LpRv89+kezgIaEcJgEaJfgvJOD1bYsw==","shasum":"2872ef46f8f19be2eaabffd5f0c4fa630c473c56","tarball":"https://registry.npmjs.org/@aaxis/react-native-fast-image/-/react-native-fast-image-8.3.4.tgz","fileCount":28,"unpackedSize":108274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzzKJCRA9TVsSAnZWagAArWgP/ilbm+xOdSBLU6o0YztJ\nabKRHXRmx8sTEF5dPKOoPGSb2/BPqUFdEXWW07HP3eig8IDutm+yqrocM5FV\ncN24TUyhOyu9igfXveT2owb52dK1UPJ7ghYzy86ytSe2lrbkDUh7RA9vd8go\njVQMPsHOE0w56vSqJItXJIHG9bY9vYqzUNUVq3G0oHkxZTEkhodIGNqao/7u\n93+ZuTLTOxnlMLKeFpZPj4tt+s0b5b8joytOd41dQqE+zSUv84Nuj3AAgm/8\nP6Kr7wHMy1V1bjSGncqo4jvBBxDG0tLE3Ysf+xmaHfsluYuxKOk9l8y1yW7m\nbh5y776li4HLrXsTwygS4KyM/aFOXC8j3JCDCHWhwxAiHKbnlg7Bw+gtXwtZ\nS0b8zytLNdyhv2HQIhBVePumWc2TWpV5oePANOs6CeKIG6mq1FQ5eEwXZizc\nkxqRJO66MtxgmPFjekD0u9VkFGlr8xSQX5V+od3zhyeilvIFqfZdy4qWScGm\nodYp8TUlzJeyGvOL4KkkR5TA9dt4h5L+9em1Kb9ldOMOdtPJz4QvlR0dzCBz\nKX2nFDNcZqjBB1HGSzfwZSLI5tv80JLFoECuDlFEEiQrJj5MtIsBcgJRTeeO\nH1z5v/ApqNlADfsrjI2FVZXikR+qt8kwZMTY3yZIGBxa9Mw+hT2OtW3p2/T0\n3CS/\r\n=vxAh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQo50dRB6jNH6c13T/+F6T2sgQGUUNuL9CLIhjxh9hyQIgdESnRzegFgdr3rRhen5ak0F4J76O6/aGi7Zynw37xaI="}]},"_npmUser":{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"},"directories":{},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-fast-image_8.3.4_1607414409459_0.808663369955934"},"_hasShrinkwrap":false},"8.3.5":{"name":"@aaxis/react-native-fast-image","version":"8.3.5","description":"FastImage, performant React Native image component.","keywords":["cache","cached","fastimage","image","priority"],"license":"(MIT AND Apache-2.0)","author":{"name":"Zachary"},"main":"dist/index.cjs.js","module":"dist/index.js","typings":"dist/index.d.ts","scripts":{"build":"dv-scripts build && cp src/index.js.flow dist/index.js.flow","lint":"dv-scripts lint","release":"dv-scripts release","test":"dv-scripts test"},"prettier":{"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"all"},"eslintConfig":{"extends":"dv-scripts"},"jest":{"modulePathIgnorePatterns":["ReactNativeFastImageExample*","ReactNativeFastImageExampleServer*"],"preset":"react-native"},"devDependencies":{"@babel/core":"^7.10.5","@babel/runtime":"^7.10.5","@types/jest":"^26.0.4","@types/react":"^16.9.23","@types/react-native":"^0.61.17","@types/react-test-renderer":"^16.9.2","babel-jest":"^24.9.0","dv-scripts":"^1.4.2","eslint-config-dv-scripts":"^1.1.1","jest":"^24.9.0","metro-react-native-babel-preset":"^0.56.0","prettier":"^2.0.5","react":"16.9.0","react-native":"0.61.5","react-test-renderer":"16.9.0","typescript":"^3.9.7"},"peerDependencies":{"react":"^16.8.6","react-native":">=0.60.0"},"gitHead":"6f20cb13b051b175925af81f1b8cd511e681bbc3","_id":"@aaxis/react-native-fast-image@8.3.5","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+nsTU/aOBxDhOZeRvxFo2UdZsFjAP9wfjwYpuL8OlXiW2CdqRTPSRhh6oqMygMeDblVJcnagF4Aw6p5giLWoVg==","shasum":"06517cfb29427c39a12fd9502a3f85a5c61c70b5","tarball":"https://registry.npmjs.org/@aaxis/react-native-fast-image/-/react-native-fast-image-8.3.5.tgz","fileCount":28,"unpackedSize":107617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzzYuCRA9TVsSAnZWagAAlIoP/RZo07jK39qlC9XXzW7Z\nMOOxQjd4ZiU46ey1EV0Ba5rGpVWZyvEkXjUj0PWxRn0Dh9qvj/4YgHjYqJMj\nLzxxuOveRoGRCM9rhYM3EkGucK2F14RswsbAz3K08EBa8+KrP3ph8B3ZruFI\nCPJtULLer6rxV44vf5wScQazcN/9/WxB6DKfgJr23np4Hs/5tA2WsqloZVis\nljymj7WMI8QlBDgyEgU9XQP5aYQbVTtEU/YFRozy0mqcwrnJBu5dTjR+jNTw\nZi5MuIjleZxDu/kbl/vNnnnXDIgD/sh1d7MIWRmGH/a+2R8XvDBp+vTC2c4t\ncIGUfIBiDZycexVfbTlVGWGfMYuv7h3IMuc1QwttJpfloR2OBWaPw+kUbtEJ\nuvbxi1kMwsHHhcYT/NsVPnP7SB6dL2VoWJfucL4VV5RhsN/+pTUrD5/oshRl\n386xyhrFIMgg5JVBc1HG9LTR7QixzaE5M4ZVcxQjYv1WphbyIReJcKjLaJaV\ns0hcPnXWXKYSwQa43xy5hKEE8a92mg/mUJIgK/sHdwTroTFESxLn812kkACE\nW3m8d95cV+c0e3WVltLfYYOPe7EmQu0bu3PaCcICq2Xj2ktzvOII/Xp2gdOQ\nn7RFwL0D+gPJYJN514hd2vVE6UwacJ05VTCp4UKeeEggDn0rGvPwRzx17OJA\n7VSU\r\n=gh57\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUaT+mpTZmRaz2du5K5m7+T8yIfK2uGoh0peFm8CwTsgIhAO4nQOZ9YFqAYeri/pJEqDByO5Z8tioEXcmwGV77WBDw"}]},"_npmUser":{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"},"directories":{},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-fast-image_8.3.5_1607415341690_0.5836370822326735"},"_hasShrinkwrap":false},"8.3.6":{"name":"@aaxis/react-native-fast-image","version":"8.3.6","description":"FastImage, performant React Native image component.","keywords":["cache","cached","fastimage","image","priority"],"license":"(MIT AND Apache-2.0)","author":{"name":"Zachary"},"main":"dist/index.cjs.js","module":"dist/index.js","typings":"dist/index.d.ts","scripts":{"build":"dv-scripts build && cp src/index.js.flow dist/index.js.flow","lint":"dv-scripts lint","release":"dv-scripts release","test":"dv-scripts test"},"prettier":{"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"all"},"eslintConfig":{"extends":"dv-scripts"},"jest":{"modulePathIgnorePatterns":["ReactNativeFastImageExample*","ReactNativeFastImageExampleServer*"],"preset":"react-native"},"devDependencies":{"@babel/core":"^7.10.5","@babel/runtime":"^7.10.5","@types/jest":"^26.0.4","@types/react":"^16.9.23","@types/react-native":"^0.61.17","@types/react-test-renderer":"^16.9.2","babel-jest":"^24.9.0","dv-scripts":"^1.4.2","eslint-config-dv-scripts":"^1.1.1","jest":"^24.9.0","metro-react-native-babel-preset":"^0.56.0","prettier":"^2.0.5","react":"16.9.0","react-native":"0.61.5","react-test-renderer":"16.9.0","typescript":"^3.9.7"},"peerDependencies":{"react":"^16.8.6","react-native":">=0.60.0"},"gitHead":"028aec91aa7c494ef57b0ef98ab71beeb47db4f6","_id":"@aaxis/react-native-fast-image@8.3.6","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Dh/vDge8/8dd4734OrMW5UO2rfdYcwjfEeFTtKpqSm/gctb/5IE0QerYvvjYP3MEyn3Ttds7v/4z3f7sRBrJ+g==","shasum":"ae618ab7e3761306b78945b5d30e4cad5d671315","tarball":"https://registry.npmjs.org/@aaxis/react-native-fast-image/-/react-native-fast-image-8.3.6.tgz","fileCount":35,"unpackedSize":120988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzzsECRA9TVsSAnZWagAAYRIQAIuNFhZ12cEKIRyi8slz\nj1EysYIVr9X8dREPoidMvZmjdeuWhj7pZYv0atDmDBRr3cnrwBFVeje0Ewnq\nHFl0DrUa9UF1bovcF532cWtKNiNoHcP1+6o84nCCL/e2cEUcYPoGgIlHWUnx\n7b9qZpusYh6JewvPPOmooM2V12gNWsJkRKMnyuYGN7njoTZHTTybtKmtqKDc\nR8Xowx2cI8YveiLesDnwW/olYXtn95JRUYET7Mo9CvYc2Kd7YcJugHl0fzyF\n9P/OrRPTNi/auwLrwRt83PT9ISgq3NheeR9kO0BiDcK1ByOK1Kqbupdtsg3g\nLc2YZo3U3EyBABgCGTXibLmgEAcMR33I9S4fcjg+iIBjtVB48Vdp0f+Zy62y\nC5ax8oL54aFsQgJT6phfAH+RmO709Fz+DhqR1gmvxZ5AJYqD9ecF7PA/OEW0\nlHzUod5Jhj2fkHrztFLUe4Sq/0EeQRibBm/lV0imLNxMKZwkaQZeSw2gS7aQ\n1oshPg62vaoYL0ngIsXPnCZwFYj5VIZJz2V6Uziu6iazKZXDXcd5T3o4WnmD\nKTYYlpxLXNz5keyn7ft8lhIpSUZho4mWbSsL02nZlnFQ9GXaRHt10HvhpzQT\nk5y/EGihN+p09QtMsWAEQxIm72sh7e2VlBPlFPk0Zbo+q0ZvwNBLhCyki9/J\nmeCr\r\n=S+Z2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBH81oSnmqxKjlK/PIyrV0zN/BemaRYTl10QMOZQLG3LAiBRtKFB+dBoAqAgqj51LKtOmKMgWyXhovQ4p5Kh6Ykexg=="}]},"_npmUser":{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"},"directories":{},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-fast-image_8.3.6_1607416580404_0.2391108724784381"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-08T08:00:09.404Z","8.3.4":"2020-12-08T08:00:09.601Z","modified":"2022-04-04T10:56:28.069Z","8.3.5":"2020-12-08T08:15:41.806Z","8.3.6":"2020-12-08T08:36:20.517Z"},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"description":"FastImage, performant React Native image component.","keywords":["cache","cached","fastimage","image","priority"],"author":{"name":"Zachary"},"license":"(MIT AND Apache-2.0)","readme":"<h1 align=\"center\">\n  🚩 FastImage\n</h1>\n\nPerformant React Native image component. This is fork from react-native-fast-image:v8.3.4, and fixed an issue which support 0.60+ react-native.\n\nReact Native's `Image` component handles image caching like browsers\nfor the most part.\nIf the server is returning proper cache control\nheaders for images you'll generally get the sort of built in\ncaching behavior you'd have in a browser.\nEven so many people have noticed:\n\n-   Flickering.\n-   Cache misses.\n-   Low performance loading from cache.\n-   Low performance in general.\n\n`FastImage` is an `Image` replacement that solves these issues.\n`FastImage` is a wrapper around\n[SDWebImage (iOS)](https://github.com/rs/SDWebImage)\nand\n[Glide (Android)](https://github.com/bumptech/glide).\n\n## Features\n\n-   [x] Aggressively cache images.\n-   [x] Add authorization headers.\n-   [x] Prioritize images.\n-   [x] Preload images.\n-   [x] GIF support.\n-   [x] Border radius.\n\n## Usage\n\n**Note: You must be using React Native 0.60.0 or higher to use the most recent version of `react-native-fast-image`.**\n\n```bash\nyarn add @aaxis/react-native-fast-image\n```\n\n```jsx\nimport FastImage from '@aaxis/react-native-fast-image'\n\nconst YourImage = () => (\n    <FastImage\n        style={{ width: 200, height: 200 }}\n        source={{\n            uri: 'https://unsplash.it/400/400?image=1',\n            headers: { Authorization: 'someAuthToken' },\n            priority: FastImage.priority.normal,\n        }}\n        resizeMode={FastImage.resizeMode.contain}\n    />\n)\n```\n\n## Are you using Glide already using an AppGlideModule?\n\n-   [Are you using Glide already using an AppGlideModule?](docs/app-glide-module.md) (you might have problems if you don't read this)\n\n## Are you using Proguard?\n\nIf you use Proguard you will need to add these lines to `android/app/proguard-rules.pro`:\n\n```\n-keep public class com.dylanvann.fastimage.* {*;}\n-keep public class com.dylanvann.fastimage.** {*;}\n-keep public class * implements com.bumptech.glide.module.GlideModule\n-keep public class * extends com.bumptech.glide.module.AppGlideModule\n-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {\n  **[] $VALUES;\n  public *;\n}\n```\n\n## Properties\n\n### `source?: object`\n\nSource for the remote image to load.\n\n---\n\n### `source.uri?: string`\n\nRemote url to load the image from. e.g. `'https://facebook.github.io/react/img/logo_og.png'`.\n\n---\n\n### `source.headers?: object`\n\nHeaders to load the image with. e.g. `{ Authorization: 'someAuthToken' }`.\n\n---\n\n### `source.priority?: enum`\n\n-   `FastImage.priority.low` - Low Priority.\n-   `FastImage.priority.normal` **(Default)** - Normal Priority.\n-   `FastImage.priority.high` - High Priority.\n\n---\n\n### `source.cache?: enum`\n\n-   `FastImage.cacheControl.immutable` - **(Default)** - Only updates if url changes.\n-   `FastImage.cacheControl.web` - Use headers and follow normal caching procedures.\n-   `FastImage.cacheControl.cacheOnly` - Only show images from cache, do not make any network requests.\n\n---\n\n### `resizeMode?: enum`\n\n-   `FastImage.resizeMode.contain` - Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).\n-   `FastImage.resizeMode.cover` **(Default)** - Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).\n-   `FastImage.resizeMode.stretch` - Scale width and height independently, This may change the aspect ratio of the src.\n-   `FastImage.resizeMode.center` - Do not scale the image, keep centered.\n\n---\n\n### `onLoadStart?: () => void`\n\nCalled when the image starts to load.\n\n---\n\n### `onProgress?: (event) => void`\n\nCalled when the image is loading.\n\ne.g. `onProgress={e => console.log(e.nativeEvent.loaded / e.nativeEvent.total)}`\n\n---\n\n### `onLoad?: (event) => void`\n\nCalled on a successful image fetch. Called with the width and height of the loaded image.\n\ne.g. `onLoad={e => console.log(e.nativeEvent.width, e.nativeEvent.height)}`\n\n---\n\n### `onError?: () => void`\n\nCalled on an image fetching error.\n\n---\n\n### `onLoadEnd?: () => void`\n\nCalled when the image finishes loading, whether it was successful or an error.\n\n---\n\n### `style`\n\nA React Native style. Supports using `borderRadius`.\n\n---\n\n### `fallback: boolean`\n\nIf true will fallback to using `Image`.\nIn this case the image will still be styled and laid out the same way as `FastImage`.\n\n---\n\n### `tintColor?: number | string`\n\nIf supplied, changes the color of all the non-transparent pixels to the given color.\n\n## Static Methods\n\n### `FastImage.preload: (source[]) => void`\n\nPreload images to display later. e.g.\n\n```js\nFastImage.preload([\n    {\n        uri: 'https://facebook.github.io/react/img/logo_og.png',\n        headers: { Authorization: 'someAuthToken' },\n    },\n    {\n        uri: 'https://facebook.github.io/react/img/logo_og.png',\n        headers: { Authorization: 'someAuthToken' },\n    },\n])\n```\n\n## Troubleshooting\n\nIf you have any problems using this library try the steps in [troubleshooting](docs/troubleshooting.md) and see if they fix it.\n\nIf you meet an issue with \"unable to access 'https://chromium.googlesource.com/webm/libwebp'\" when execute pod install.\nPlease go to your cocoapod folder: /Users/<username>/.cocoapods/repos/trunk/Specs/1/9/2/libwebp/1.1.0\nthen change libwebp.podspec.json source.git to \"https://github.com/webmproject/libwebp.git\"\n\n## Development\n\n[Follow these instructions to get the example app running.](docs/development.md)\n\n## Supported React Native Versions\n\nThis project only aims to support the latest version of React Native.\\\nThis simplifies the development and the testing of the project.\n\nIf you require new features or bug fixes for older versions you can fork this project.\n\n## Credits\n\nThe idea for this modules came from\n[vovkasm's](https://github.com/vovkasm)\n[react-native-web-image](https://github.com/vovkasm/react-native-web-image)\npackage.\nIt also uses Glide and SDWebImage, but didn't have some features I needed (priority, headers).\n\nThanks to [@mobinni](https://github.com/mobinni) for helping with the conceptualization\n\n## Licenses\n\n-   FastImage - MIT © [DylanVann](https://github.com/DylanVann)\n-   SDWebImage - `MIT`\n-   Glide - BSD, part MIT and Apache 2.0. See the [LICENSE](https://github.com/bumptech/glide/blob/master/license) file for details.\n\n[build-badge]: https://github.com/dylanvann/react-native-fast-image/workflows/CI/badge.svg\n[build]: https://github.com/DylanVann/react-native-fast-image/actions?query=workflow%3ACI\n[coverage-badge]: https://img.shields.io/codecov/c/github/dylanvann/react-native-fast-image.svg\n[coverage]: https://codecov.io/github/dylanvann/react-native-fast-image\n[downloads-badge]: https://img.shields.io/npm/dm/react-native-fast-image.svg\n[npmtrends]: http://www.npmtrends.com/react-native-fast-image\n[package]: https://www.npmjs.com/package/react-native-fast-image\n[version-badge]: https://img.shields.io/npm/v/react-native-fast-image.svg\n[twitter]: https://twitter.com/home?status=Check%20out%20react-native-fast-image%20by%20%40atomarranger%20https%3A//github.com/DylanVann/react-native-fast-image\n[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/DylanVann/react-native-fast-image.svg?style=social\n[github-watch-badge]: https://img.shields.io/github/watchers/dylanvann/react-native-fast-image.svg?style=social\n[github-watch]: https://github.com/dylanvann/react-native-fast-image/watchers\n[github-star-badge]: https://img.shields.io/github/stars/dylanvann/react-native-fast-image.svg?style=social\n[github-star]: https://github.com/dylanvann/react-native-fast-image/stargazers\n","readmeFilename":"README.md"}