UNPKG

expo-divkit

Version:
11 lines (8 loc) 290 B
import { CustomViewComponent } from "./ExpoDivKit.types"; export const CustomComponentLibrary = new Map<string, CustomViewComponent>(); export function initCustomComponent( customType: string, component: CustomViewComponent, ) { CustomComponentLibrary.set(customType, component); }