API Integration in React Native

How can you handle errors in API integration?