Waiting for AsyncStorage.getItem()
问题 I am using AsyncStorage in my React Native application to store information about the user. The getItem() function is asynchronous and requires me to implement a callback when I want to load data from the storage system. AsyncStorage.getItem("phoneNumber").then((value) => { this.setState({"phoneNumber": value}); }).done(); Because retrieving a value from the storage does not take long, I would like to wait until the operation is complete before continuing execution. Is it possible to load