| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 26-Sep-2023 | - | ||||
| android/ | H | 26-Sep-2023 | - | 3,826 | 2,916 | |
| build/ | H | 26-Sep-2023 | - | 2,510 | 1,884 | |
| ios/ | H | 26-Sep-2023 | - | 2,337 | 1,739 | |
| src/ | H | 26-Sep-2023 | - | 2,720 | 2,066 | |
| .eslintrc.js | H A D | 26-Sep-2023 | 103 | 3 | 1 | |
| .npmignore | H A D | 26-Sep-2023 | 183 | 12 | 8 | |
| CHANGELOG.md | H A D | 26-Sep-2023 | 12.8 KiB | 255 | 142 | |
| README.md | H A D | 26-Sep-2023 | 2.6 KiB | 55 | 41 | |
| babel.config.js | H A D | 26-Sep-2023 | 104 | 3 | 1 | |
| expo-module.config.json | H A D | 26-Sep-2023 | 159 | 10 | 9 | |
| package.json | H A D | 26-Sep-2023 | 961 | 37 | 36 | |
| tsconfig.json | H A D | 26-Sep-2023 | 217 | 10 | 9 |
README.md
1<p> 2 <a href="https://docs.expo.dev/versions/unversioned/sdk/image/"> 3 <img 4 src="../../.github/resources/expo-image.svg" 5 alt="expo-image" 6 height="64" /> 7 </a> 8</p> 9 10A cross-platform, performant image component for React Native and Expo. 11 12## Main features 13 14- Designed for speed 15- Support for many image formats (including animated ones) 16- Disk and memory caching 17- Supports [BlurHash](https://blurha.sh) and [ThumbHash](https://evanw.github.io/thumbhash/) - compact representations of a placeholder for an image 18- Transitioning between images when the source changes (no more flickering!) 19- Implements the CSS [`object-fit`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) and [`object-position`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) properties (see [`contentFit`](#contentfit) and [`contentPosition`](#contentposition) props) 20- Uses performant [`SDWebImage`](https://github.com/SDWebImage/SDWebImage) and [`Glide`](https://github.com/bumptech/glide) under the hood 21 22## Supported image formats 23 24| Format | Android | iOS | Web | 25| :--------: | :-----: | :-: | :-----------------------------------------------: | 26| WebP | ✅ | ✅ | ✅ [~96% adoption](https://caniuse.com/webp) | 27| PNG / APNG | ✅ | ✅ | ✅ / ✅ [~96% adoption](https://caniuse.com/apng) | 28| AVIF | ✅ | ✅ | ⏳ [~79% adoption](https://caniuse.com/avif) | 29| HEIC | ✅ | ✅ | ❌ [not adopted yet](https://caniuse.com/heif) | 30| JPEG | ✅ | ✅ | ✅ | 31| GIF | ✅ | ✅ | ✅ | 32| SVG | ✅ | ✅ | ✅ | 33| ICO | ✅ | ✅ | ✅ | 34| ICNS | ❌ | ✅ | ❌ | 35 36# API documentation 37 38- [Documentation for the latest release](https://docs.expo.dev/versions/unversioned/sdk/image/) 39 40# Installation 41 42> Currently `expo-image` can be used only with [development builds](https://docs.expo.dev/develop/development-builds/introduction/), in Expo Go, and bare React Native apps with [configured Expo modules](https://docs.expo.dev/bare/installing-expo-modules/). 43> It is not available with Snack yet. 44 45Add the package to your dependencies with the following commands: 46 47``` 48npx expo install expo-image 49npx pod-install 50``` 51 52# Contributing 53 54Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing). 55