import * as React from 'react'; import RootSiblings from 'react-native-root-siblings'; import RootManager from './RootManager'; export declare const CREATE_EVENT = "ROOT_ELEMENT_CREATE"; export declare const UPDATE_EVENT = "ROOT_ELEMENT_UPDATE"; export declare function createRootView(RootView: any, props: any): RootManager; /** * @author 田尘殇Sean(sean.snow@live.com) * @date 16/8/11 */ export default function createRootNode
(RootView: any): {
new (props: any): {
manager: RootSiblings;
componentDidUpdate(): void;
componentWillUnmount(): void;
render(): JSX.Element;
context: any;
setState ) => S | Pick & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly , nextState: Readonly , prevState: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: Readonly , nextState: Readonly, props: Readonly) | Pick, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, nextContext: any): void;
};
contextType?: React.Context