UNPKG

@es-react/react

Version:

Hippy react framework

36 lines (35 loc) 1.38 kB
import ViewNode from './view-node'; import { HippyTypes } from '../types'; interface Attributes { [key: string]: string | number | boolean | object | undefined; } interface NativePropsStyle { [key: string]: string | object | number | HippyTypes.Transform; } interface AttributeUpdateOption { notToNative?: boolean; } declare class ElementNode extends ViewNode { tagName: string; id: string; style: HippyTypes.Style; attributes: Attributes; events: object; constructor(tagName: string); get nativeName(): string | undefined; toString(): string; setListenerHandledType(key: any, type: any): void; isListenerHandled(key: any, type: any): boolean; hasAttribute(key: string): boolean; getAttribute(key: string): string | number | boolean | object | undefined; setStyleAttribute(value: any): void; setAttributes(attributeQueue?: [][]): void; parseAnimationStyleProp(style: any): void; parseAttributeProp(key: string, value: any): boolean; setAttribute(key: string, value: any, options?: AttributeUpdateOption): void; removeAttribute(key: string): void; setStyle(property: string, value: string | number | HippyTypes.Transform, notToNative?: boolean): void; setNativeProps(nativeProps: NativePropsStyle): void; setText(text: string | undefined): void | null; } export default ElementNode;