Example of handling errors in React Native app.
Part of an article "Errors handling with RN Notificated".
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
- 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
- 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