This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Image

A Jetpack Compose Image component for displaying images.

Android
Included in Expo Go

Expo UI Image wraps the official Jetpack Compose Image API and displays a bundled or remote image. Set the size with modifiers such as size, width, or fillMaxWidth, then contentScale to control how the image fills those bounds.

Images rendered with different contentScale propsImages rendered with different contentScale props

Installation

Terminal
- npx expo install @expo/ui
- yarn expo install @expo/ui
- pnpm expo install @expo/ui
- bun expo install @expo/ui

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

ImageExample.tsx
import { Host, Image } from '@expo/ui/jetpack-compose'; import { size } from '@expo/ui/jetpack-compose/modifiers'; export default function ImageExample() { return ( <Host matchContents> <Image source={require('./assets/photo.jpg')} contentScale="crop" contentDescription="A mountain at sunset" modifiers={[size(240, 160)]} /> </Host> ); }

API

import { Image } from '@expo/ui/jetpack-compose';

No API data file found, sorry!