In React Native, error codes align with the respective native SDKs:

  • For Android: React Native follows the error codes defined by the Android SDK.
  • For iOS: React Native follows the error codes defined by the iOS SDK.

This means that when handling errors in React Native, you should refer to the platform-specific error codes based on whether the app is running on Android or iOS.

Sample code

To handle errors in React Native for Android and iOS, refer this