UNPKG

@ionic/react

Version:
32 lines (31 loc) 1.76 kB
import React from 'react'; import { IonLifeCycleContext } from '../contexts/IonLifeCycleContext'; export declare const withIonLifeCycle: (WrappedComponent: React.ComponentType<any>) => { new (props: any): { context: React.ContextType<typeof IonLifeCycleContext>; componentRef: React.RefObject<any>; componentDidMount(): void; render(): import("react/jsx-runtime").JSX.Element; setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<any> & Readonly<{ children?: React.ReactNode | undefined; }>; state: Readonly<any>; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any; componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void; }; contextType?: React.Context<any> | undefined; };