# @react-native/asset-utils

> Asset path utilities for React Native.

Latest version **0.87.1** (published 2026-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-native/asset-utils
pnpm add @react-native/asset-utils
yarn add @react-native/asset-utils
bun add @react-native/asset-utils
```

## Health

**Score 75/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.87.1 |
| Published | 2026-08-26 |
| First published | 2026-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^22.13.0 \|\| ^24.3.0 \|\| >= 26.0.0 |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 126460 |
| Maintainers | react-native-bot, fb |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/@react-native/asset-utils
- Repository: https://github.com/react/react-native
- Homepage: https://github.com/react/react-native/tree/HEAD/packages/asset-utils#readme
- Issues: https://github.com/react/react-native/issues
- npm.io page: https://npm.io/package/@react-native/asset-utils

## Recent versions

- 0.87.1 (latest) — 2026-08-26
- 0.89.0-nightly-20261012-8566016ec (nightly) — 2026-10-12
- 0.88.0-rc.4 (next) — 2026-10-05
- 0.89.0-nightly-20261011-1c6e0c773 — 2026-10-11
- 0.89.0-nightly-20261010-1c6e0c773 — 2026-10-10
- 0.89.0-nightly-20261009-8d658f410 — 2026-10-09
- 0.89.0-nightly-20261008-be567d270 — 2026-10-08
- 0.89.0-nightly-20261007-30e2d93b4 — 2026-10-07
- 0.89.0-nightly-20261006-99d327c61 — 2026-10-06
- 0.89.0-nightly-20261005-024b474ce — 2026-10-05
- 0.89.0-nightly-20261004-024b474ce — 2026-10-04
- 0.89.0-nightly-20261003-024b474ce — 2026-10-03
- 0.89.0-nightly-20261002-cd2de187e — 2026-10-02
- 0.89.0-nightly-20261001-53237c7d3 — 2026-10-01
- 0.89.0-nightly-20260930-085caf035 — 2026-09-30
- … 89 more at https://npm.io/package/@react-native/asset-utils/versions

## README

# @react-native/asset-utils

[![npm]](https://www.npmjs.com/package/@react-native/asset-utils) [![npm downloads]](https://www.npmjs.com/package/@react-native/asset-utils)

[npm]: https://img.shields.io/npm/v/@react-native/asset-utils.svg?color=blue
[npm downloads]: https://img.shields.io/npm/dm/@react-native/asset-utils.svg

Android resource-path helpers used when copying React Native assets into `drawable-*` / `raw` folders. Consumed by bundling and build tooling; most apps never import this directly.

## API

```js
import {
  getAndroidResourceFolderName,
  getAndroidResourceIdentifier,
} from '@react-native/asset-utils';
```

| Export | Signature | Notes |
|---|---|---|
| `getAndroidResourceFolderName` | `(asset: PackagerAsset, scale: number) => string` | e.g. `drawable-xhdpi`; non-drawable types resolve to `raw` |
| `getAndroidResourceIdentifier` | `(asset: PackagerAsset) => string` | Sanitised resource name |
| `drawableFileTypes` | `Set<string>` | Asset types that map to a `drawable-*` folder |

---
_Source: https://npm.io/package/@react-native/asset-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
