I want to create a shopping cart. I use this code to save some data like username. Now I want to save product ID and Count in an array in AsyncStorage.
(I use expo.)
How can I do that?
_save_user = async () => {
await SecureStore.setItemAsync('username', parseInt(this.state.Username).toString());
};
Please tell me if you have some better idea.