how to remove an item from AsyncStorage? right now I am trying this code
AsyncStorage.removeItem(\'userId\');
but this is not working for me.>
This looks correct, but maybe you are trying to read back from AsyncStorage
too soon? It's asynchronous, so the change isn't applied right away and you might still see the key if you try to get it on the following line. Try to call AsyncStorage.removeItem
with await
or do what you want to do in the callback.