Interface for storage backend used in {@link ScriptManagerConfig}.
The interface is modelled on Async Storage from react-native-community
.
▸ getItem(key
): Promise
<undefined
| null
| string
>
Gets the data for the key.
Name | Type |
---|---|
key |
string |
Promise
<undefined
| null
| string
>
packages/repack/src/modules/ScriptManager/types.ts:146
▸ removeItem(key
): Promise
<void
>
Removes the item based on the key.
Name | Type |
---|---|
key |
string |
Promise
<void
>
packages/repack/src/modules/ScriptManager/types.ts:150
▸ setItem(key
, value
): Promise
<void
>
Sets the item value based on the key.
Name | Type |
---|---|
key |
string |
value |
string |
Promise
<void
>