Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.78 KB

File metadata and controls

43 lines (31 loc) · 1.78 KB
react-native-notificated twg

Example of handling errors in React Native app.
Part of an article "Errors handling with RN Notificated".


Description

This app is a part of an article Errors handling with RN Notificated. Presents few approach to errors handling in modern react native apps, and show how to use:

  • react-native-notificated
  • react-error-boundary
  • axios interceptors
  • try catch block


Installation:

  • Clone the repo
  • Run yarn from the root
  • Run cd ios && pod install && cd ..
  • Run the metro with yarn start
  • Open the app either in a simulator with yarn ios / yarn android or on a physical device

Checkpoints:

  • Checkpoint #1 - describe most common errors type in react native app
  • Checkpoint #2 - handle component render method errors with react-error-boundary library
  • Checkpoint #3 - handle events errors with try catch block
  • Checkpoint #4 - handle SSR errors with axios interceptors
  • Checkpoint #5 - errors handling with react-native-notificated