Skip to content
Back to skills

Add Image

ASecurity

Use expo-image for performant image loading + caching, never react-native Image. Use when the user says 'images', 'expo-image', 'image caching', 'image loading'.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
developmentbashreact

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 4, 2026

npx -y skills add khadinakbarlabs/expo-mobile-app-builder --skill add-image --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Image?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Image
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khadinakbarlabs-add-image/badge)](https://www.skillsdirectory.com/skills/khadinakbarlabs-add-image)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "add-image"
description: "Use expo-image for performant image loading + caching, never react-native Image. Use when the user says 'images', 'expo-image', 'image caching', 'image loading'."
---

# Add Expo Image

`expo-image` is the 2026 default for image loading + caching. Replaces `react-native` Image.

## Install
```bash
npm exec --no -- expo install expo-image
```

## Basic usage
```tsx
import { Image } from 'expo-image';

<Image
  source={{ uri: 'https://example.com/avatar.jpg' }}
  style={{ width: 60, height: 60, borderRadius: 30 }}
  contentFit="cover"
  transition={200}
  cachePolicy="memory-disk"
  placeholder={blurhash}  // Blurhash string for instant placeholder
/>
```

## Why not react-native Image
- expo-image uses native image loaders (SDWebImage on iOS, Glide on Android)
- ~3-5x faster decode + render
- Built-in memory + disk cache
- Blurhash placeholder support
- HEIC, WebP, AVIF support out of the box

## Cache management
```tsx
import { Image } from 'expo-image';

await Image.prefetch(['https://example.com/img1.jpg', '...']);
await Image.clearMemoryCache();
await Image.clearDiskCache();
```

## Common mistakes
- Loading huge unprocessed images → memory spike. Use thumbnails or `transform: [{ scale: 0.5 }]`.
- No `placeholder` for slow networks → user sees blank
- Forgetting `contentFit` → images stretch

Files in this skill

  • SKILL.md1.3 KB
  • agents/openai.yaml158 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…