UNPKG

@smartface/contx

Version:
19 lines 698 B
import View = require("@smartface/native/ui/view"); /** * Add context child action * * @param {string} name - Context name of the root component * @param {Object} component - Specified component * @param {string} classnames - Component classnames * @param {Object} userProps - Initial properties of the specified component * * @returns {Object} */ export default function addChild(name: string, component: View, classNames?: string, userStyle?: { [key: string]: any }, defaultClassNames?: string[] | string): { type: string, name: string, component: string, classNames: string[] | string, defaultClassNames: string[] | string, userStyle: { [key: string]: any } };