Spróbuj złapać w React Native

  try {
   // Block of code to try
}
catch(err) {
    // Block of code to handle errors
}
Hacker Harsha