@ant-design/react-native
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
21 lines (20 loc) • 584 B
TypeScript
import React from 'react';
export declare type State = {
portals: Array<{
key: number;
children: React.ReactNode;
}>;
};
export declare type PortalManagerState = {
portals: any[];
};
/**
* Portal host is the component which actually renders all Portals.
*/
export default class PortalManager extends React.PureComponent<{}, PortalManagerState> {
state: State;
mount: (key: number, children: React.ReactNode) => void;
update: (key: number, children: React.ReactNode) => void;
unmount: (key: number) => void;
render(): JSX.Element[];
}