smh-rn-expo-json-ui-engine
Version:
A JSON-driven UI engine for React Native and Expo that enables dynamic, runtime-rendered interfaces without rebuilding the app.
15 lines • 552 B
TypeScript
import type { UIComponent } from './types';
import { JSONUIEnums } from './types';
type JSONSource = UIComponent | UIComponent[] | (() => UIComponent | UIComponent[]) | {
subscribe: (cb: (val: any) => void) => {
unsubscribe: () => void;
};
};
interface JSONUIProps {
json?: UIComponent | UIComponent[];
jsonSource?: JSONSource;
}
declare const JSONUI: ({ json, jsonSource }: JSONUIProps) => import("react/jsx-runtime").JSX.Element;
export { JSONUI, JSONUIEnums };
export type { UIComponent };
//# sourceMappingURL=index.d.ts.map