rozenite-preview
Version:
A Rozenite plugin that lets you select React Native components in DevTools and preview them live on your simulator. Ideal for rapid UI development, component testing, and debugging complex apps.
35 lines (34 loc) • 979 B
TypeScript
export interface Metadata {
id: string;
name: string | null;
nameType: "literal" | "identifier" | "template";
callId: string;
line: number;
column: number;
componentType: string | null;
relativeFilename: string | null;
filePath: string | null;
isInsideReactComponent: boolean;
}
export interface Preview {
component: React.ComponentType;
name: string;
metadata?: Metadata;
}
export declare const PREVIEW_PLUGIN_ID = "rozenite-preview";
type HotModuleReloadingCallback = () => void;
type HotModuleReloadingData = {
_acceptCallback?: HotModuleReloadingCallback;
_disposeCallback?: HotModuleReloadingCallback;
_didAccept: boolean;
accept: (callback?: HotModuleReloadingCallback) => void;
dispose: (callback?: HotModuleReloadingCallback) => void;
};
type ModuleID = number;
type Exports = any;
export type MetroModule = {
id?: ModuleID;
exports: Exports;
hot?: HotModuleReloadingData;
};
export {};