react-native-paper-portal
Version:
Render anything on top of the rest
15 lines (14 loc) • 474 B
TypeScript
import * as React from 'react';
import { ViewStyle } from 'react-native';
interface IHostProps {
children: React.ReactNode;
style?: ViewStyle;
}
export interface IProvider {
mount(children: React.ReactNode): string;
update(key?: string, children?: React.ReactNode): void;
unmount(key?: string): void;
}
export declare const Context: React.Context<IProvider | null>;
export declare const Host: ({ children, style }: IHostProps) => JSX.Element;
export {};