# @ovok/native/polyfills

Canonical page: https://docs.ovok.com/native-sdk/reference/polyfills

Runtime polyfills the SDK needs in React Native; import once at app start.

Import from `@ovok/native/polyfills`.

## Variables [#variables]

### cleanupOvokNativeRuntime [#cleanupovoknativeruntime]

```ts
const cleanupOvokNativeRuntime: () => void = cleanupRuntime;
```

Restores the globals that `polyfillOvokWebAPIs` replaced.

#### Returns [#returns]

`void`

***

### ~~initializeOvokNativeRuntime~~ [#initializeovoknativeruntime]

```ts
const initializeOvokNativeRuntime: (config?) => void = polyfillOvokWebAPIs;
```

Deprecated alias of `polyfillOvokWebAPIs`.

#### Parameters [#parameters]

| Parameter | Type |
| ------ | ------ |
| `config?` | `PolyfillEnabledConfig` |

#### Returns [#returns-1]

`void`

#### Deprecated [#deprecated]

Use polyfillOvokWebAPIs instead.

***

### polyfillOvokWebAPIs [#polyfillovokwebapis]

```ts
const polyfillOvokWebAPIs: (config?) => void = polyfillRuntime;
```

Installs the web APIs the SDK needs in React Native: crypto, location, sessionStorage,
TextEncoder, btoa and Event. Call once at app start, before creating a client;
`config` selects which ones to install.

#### Parameters [#parameters-1]

| Parameter | Type |
| ------ | ------ |
| `config?` | `PolyfillEnabledConfig` |

#### Returns [#returns-2]

`void`
