@ovok/native/polyfills

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

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

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

Import from @ovok/native/polyfills.

Variables

cleanupOvokNativeRuntime

const cleanupOvokNativeRuntime: () => void = cleanupRuntime;

Restores the globals that polyfillOvokWebAPIs replaced.

Returns

void


initializeOvokNativeRuntime

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

Deprecated alias of polyfillOvokWebAPIs.

Parameters

ParameterType
config?PolyfillEnabledConfig

Returns

void

Deprecated

Use polyfillOvokWebAPIs instead.


polyfillOvokWebAPIs

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

ParameterType
config?PolyfillEnabledConfig

Returns

void

Last updated on

On this page