| 12345678910111213141516 |
- import { AsyncStorage } from 'react-native';
- const addAsyncStorage = async (key, value) => {
- await AsyncStorage.setItem(key, value);
- return true;
- };
- const removeAsyncStorage = async (key) => {
- await AsyncStorage.removeItem(key);
- return true;
- };
- const getAsyncStorage = async (key) => {
- const val = await AsyncStorage.getItem(key);
- return val;
- };
- export { addAsyncStorage, removeAsyncStorage, getAsyncStorage };
|