how to remove an item from AsyncStorage? right now I am trying this code
AsyncStorage.removeItem(\'userId\');
but this is not working for me.>
try this for react-native
const deletCar = async () => {
try {
await AsyncStorage.removeItem('@storage_Key').then(() => {
// props.navigation.navigate('same page name refresh ');
/* setprevCar({ carNumner: '', carModel: '' }) return empty obj if deleted. */
})
}
catch (exception) {
return false;
}
}