- Why are operations in the AsyncStorage API asynchronous?
- To avoid interfering with the responsiveness of the UI.
- Which AsyncStorage API would you use to look up several items at once?
- A combination of AsyncStorage.getAllKeys() and AsyncStorage.multiGet().
- How do you get the connectivity status of the device in a React Native application?
- You call NetInfo.getConnectionInfo() and read the resulting connection type.
- How do you respond to a change in connectivity status in a React Native application?
- You can listen to the connectionChange event by calling NetInfo.addEventListener('connectionChange', ...).