coinforbarter-react-native
Version:
CoinForBarter ReactNative Library - Integrate cryptocurrency payments for goods and services in your Mobile App
23 lines (22 loc) • 726 B
TypeScript
import React, { ErrorInfo } from 'react';
import { ErrorContextType } from '../../store/errors/types';
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
constructor(props: ErrorBoundaryProps);
state: ErrorBoundaryState;
static getDerivedStateFromError: (error: Error) => {
hasError: boolean;
error: Error;
};
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
render(): {} | null | undefined;
}
interface ErrorBoundaryProps {
errorProps: ErrorContextType;
closeModal: () => void;
}
interface ErrorBoundaryState {
hasError: boolean;
error?: Error;
errorInfo?: ErrorInfo;
}
export {};