UNPKG

@hyext-beyond/hy-ui-native

Version:

A native lib polyfill for huya miniapp

16 lines 471 B
import { AsyncStorage } from "react-native"; export var Storage = { getItem: function getItem() { return AsyncStorage.getItem.apply(AsyncStorage, arguments); }, setItem: function setItem() { return AsyncStorage.setItem.apply(AsyncStorage, arguments); }, removeItem: function removeItem() { return AsyncStorage.removeItem.apply(AsyncStorage, arguments); }, clear: function clear() { return AsyncStorage.clear(); } }; export default Storage;