UNPKG

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.

12 lines (11 loc) 426 B
import { ComponentType } from 'react'; import { Preview } from '../shared/types'; export declare function getPreviewComponents(): Preview[]; export declare function getComponentByName(name: string): ComponentType<{}> | null; /** * Register a preview component. * * @param name Preview name * @param component React component */ export declare function registerPreview(name: string, component: React.ComponentType): void;