UNPKG

react-native-ajora

Version:

The most complete AI agent UI for React Native

17 lines (16 loc) 524 B
import React, { Component, ReactNode } from "react"; interface Props { children: ReactNode; fallback?: ReactNode; } interface State { hasError: boolean; error?: Error; } export declare class ErrorBoundary extends Component<Props, State> { constructor(props: Props); static getDerivedStateFromError(error: Error): State; componentDidCatch(error: Error, errorInfo: any): void; render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined; } export {};