voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
26 lines (15 loc) • 629 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [ReactNativeAsyncStorage](./auth.reactnativeasyncstorage.md) > [setItem](./auth.reactnativeasyncstorage.setitem.md)
## ReactNativeAsyncStorage.setItem() method
Persist an item in storage.
<b>Signature:</b>
```typescript
setItem(key: string, value: string): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| key | string | storage key. |
| value | string | storage value. |
<b>Returns:</b>
Promise<void>