UNPKG

react-native-root-siblings

Version:

react native root sibling elements manager

17 lines (16 loc) 576 B
import { ReactNode } from 'react'; export declare function setSiblingWrapper(wrapper: (sibling: ReactNode) => ReactNode): void; export default class RootSiblingsManager { private id; private manager; constructor(element: ReactNode, callback?: () => void); update(element: ReactNode, callback?: () => void): void; destroy(callback?: () => void): void; } export declare function RootSiblingParent(props: { children: ReactNode; inactive?: boolean; }): JSX.Element; export declare function RootSiblingPortal(props: { children: ReactNode; }): null;