react-nativescript
Version:
React renderer for NativeScript
24 lines (23 loc) • 1.09 kB
TypeScript
/// <reference types="react" />
import { NSVText, NSVRoot, INSVElement } from "../nativescript-vue-next/runtime/nodes";
export declare type Type = string | React.JSXElementConstructor<any>;
export declare type Props = any;
export declare type Container = NSVRoot | INSVElement;
export declare type Instance = INSVElement;
export declare type TextInstance = NSVText;
export interface SuspenseInstance {
state: "pending" | "complete" | "client-render";
children: Array<Instance | TextInstance | SuspenseInstance>;
}
export declare type HydratableInstance = Instance | TextInstance | SuspenseInstance;
export declare type PublicInstance = Instance | TextInstance;
export declare type HostContext = {
isInAParentText: boolean;
isInAParentSpan: boolean;
isInAParentFormattedString: boolean;
isInADockLayout: boolean;
isInAGridLayout: boolean;
isInAnAbsoluteLayout: boolean;
isInAFlexboxLayout: boolean;
};
export declare type InstanceCreator<T extends Instance = Instance> = (props: Props, rootContainerInstance: Container, hostContext: HostContext) => T;