Skip to main content

Interface: WebStorageLike

The part of a Web Storage area (webStorageAdapter) the adapter uses, written structurally so the SDK needs no DOM types: localStorage, sessionStorage and any object with these two synchronous methods (a React Native MMKV wrapper, a test double) satisfy it.

Methods​

getItem()​

getItem(key): string | null

Parameters​

ParameterType
keystring

Returns​

string | null


setItem()​

setItem(key, value): void

Parameters​

ParameterType
keystring
valuestring

Returns​

void