import AsyncStorage from "@react-native-async-storage/async-storage" ; param key export async function loadString ( key ) { try { return await AsyncStorage . getItem ( key ) ; } catch { return null ; } } param key param value export async function saveString ( key , value ) { try { await AsyncStorage . setItem ( key , value ) ; return true ; } catch { return false ; } } param key export async function load ( key ) { try { const almostThere = await AsyncStorage . getItem ( key ) ; return JSON . parse ( almostThere ) ; } catch { return null ; } } param key param value export async function save ( key , value ) { try { await AsyncStorage . setItem ( key , JSON . stringify ( value ) ) ; return true ; } catch { return false ; } } param key export async function remove ( key ) { try { await AsyncStorage . removeItem ( key ) ; } catch { } } /**
 * Burn it all to the ground.
 */ export async function clear ( ) { try { await AsyncStorage . clear ( ) ; } catch { } }