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

> **schemeOf**(`uri`): [`SsUriScheme`](../type-aliases/SsUriScheme.md)

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

How `uri` will be opened.

A bare relative path means the asset directory. That is the default because
it is the only form that reaches a release build on both platforms with its
*directory* intact — and a directory is what a pack is. `image_path`, an
`external_textures` entry, an Instance part's external `.ssab` and a
`.ssqb`'s `ref_anime_pack` are all names relative to the `.ssab`.

## Parameters

### uri

`string`

## Returns

[`SsUriScheme`](../type-aliases/SsUriScheme.md)
