reactnativecomponents
Version:
React Native Components
92 lines (91 loc) • 3.86 kB
TypeScript
import * as React from 'react';
import Component from '../AbstractComponent';
import RootManager from '../createRootNode/RootManager';
import Props from './Props';
/**
* @author 田尘殇Sean(sean.snow@live.com)
* @date 16/5/24
*/
export declare class AbstractDialog extends Component<Props> {
static defaultProps: {
autoDisableAndroidBackPress: boolean;
activeOpacity: number;
visible: boolean;
statusBarAutoHidden: boolean;
};
state: {
animating: boolean;
visible: boolean;
};
mounted: boolean;
statusBarHidden: boolean;
componentWillMount(): void;
componentWillReceiveProps(): void;
shounldComponentUpdate(): boolean;
componentWillUnmount(): void;
handleHardwareBackPress(): void;
handlePress(): void;
handleAnimationBegin(): void;
handleAnimationEnd(): void;
renderLoading({ children, loadingProps }: {
children: any;
loadingProps: any;
}): JSX.Element;
render(): JSX.Element;
}
declare const _default: {
new (props: Readonly<Props>): {
manager: RootManager;
componentWillMount(): void;
componentWillUpdate(nextProps: any): void;
componentWillUnmount(): void;
render(): JSX.Element;
context: any;
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
forceUpdate(callBack?: () => void): void;
readonly props: Readonly<Props> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<any>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<Props>, prevState: Readonly<any>, snapshot?: any): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<any>, nextContext: any): void;
};
new (props: Props, context?: any): {
manager: RootManager;
componentWillMount(): void;
componentWillUpdate(nextProps: any): void;
componentWillUnmount(): void;
render(): JSX.Element;
context: any;
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
forceUpdate(callBack?: () => void): void;
readonly props: Readonly<Props> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<any>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<Props>, prevState: Readonly<any>, snapshot?: any): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<any>, nextContext: any): void;
};
contextType?: React.Context<any>;
};
export default _default;