← React Native learning pathReact Native · Module 6 of 10
Networking and storage
Fetch data from APIs and store it on the device.
📖 Key ideas
- Use fetch or axios for HTTP calls.
- TanStack Query handles caching and loading states.
- AsyncStorage stores small key-value data.
- expo-secure-store for tokens and secrets.
- SQLite or MMKV for larger or faster local storage.
💡 Real-life example: SecureStore is a locker with a key; AsyncStorage is an open shelf for non-secret items.
fetchBuilt-in HTTP API
AsyncStorageSimple async key-value storage
SecureStoreEncrypted storage for secrets
TanStack QueryServer-state caching library