---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/functions/resolveAgainst.md
---
# Function: resolveAgainst()

> **resolveAgainst**(`baseUri`, `ref`): `string`

Defined in: [packages/react-native-spritestudio/src/core/assets.ts:57](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/assets.ts#L57)

Resolves `ref` — a name a pack carries — against the URI the pack came from.

**The one place a name a pack carries becomes something openable**, whether it
names a texture, an Instance part's external `.ssab` or a `.ssqb`'s
`ref_anime_pack`.

Deliberately string surgery rather than `new URL`: `baseUri` is an
asset-relative path, a filesystem path *or* a URL depending on where the
`.ssab` came from, and the join is the same operation for all three. A
`?query` on the base belongs to the `.ssab` and not to its directory, so it
goes.

## Parameters

### baseUri

`string`

### ref

`string`

## Returns

`string`
