react-native-unit-components
Version:
Unit React Native components
20 lines (14 loc) • 432 B
text/typescript
import { NativeModules } from 'react-native';
const { UNStoreManager } = NativeModules;
class UNStoreManagerHelper {
static saveValue(key: string, value: string) {
UNStoreManager.saveValue(key, value);
}
static async getValue(key: string): Promise<string> {
return UNStoreManager.getValue(key);
}
static cleanValue(key: string) {
UNStoreManager.cleanValue(key);
}
}
export default UNStoreManagerHelper;