The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > ReactNativeAsyncStorage > setItem

ReactNativeAsyncStorage.setItem() method

Persist an item in storage.

Signature:

setItem(key: string, value: string): Promise<void>;

Parameters

Parameter Type Description
key string storage key.
value string storage value.

Returns:

Promise<void>