Component

ErrorBoundary

Error boundary with a retry fallback.

ErrorBoundary as rendered in the Native-UI Storybook

What it does

  • Reset keys
  • Custom fallback render
  • withErrorBoundary HOC

Import

import { ErrorBoundary } from '@polprog/native-ui';

The same module is available as a direct import:

import { ErrorBoundary } from '@polprog/native-ui/components/ErrorBoundary';

Open in Storybook View source

Related components

← All components

Expo React Native 0.84+ iOS Android TypeScript Accessible