Name Date Size #Lines LOC

..26-Sep-2023-

android/H26-Sep-2023-3,8262,916

build/H26-Sep-2023-2,5101,884

ios/H26-Sep-2023-2,3371,739

src/H26-Sep-2023-2,7202,066

.eslintrc.jsH A D26-Sep-2023103 31

.npmignoreH A D26-Sep-2023183 128

CHANGELOG.mdH A D26-Sep-202312.8 KiB255142

README.mdH A D26-Sep-20232.6 KiB5541

babel.config.jsH A D26-Sep-2023104 31

expo-module.config.jsonH A D26-Sep-2023159 109

package.jsonH A D26-Sep-2023961 3736

tsconfig.jsonH A D26-Sep-2023217 109

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