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

> **normalizeUri**(`uri`): `string`

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

`uri` with `.`, `..` and empty segments collapsed, scheme and root intact.

`..` is collapsed here rather than left to whoever opens the file, because
`image_path` is authored relative to the `.ssae` and `../images/common.png`
is an ordinary thing for a pack to contain — and `AAssetManager_open` does
not resolve one.

## Parameters

### uri

`string`

## Returns

`string`
