(node: DOMElement, key: string, value: unknown)
| 119 | } |
| 120 | |
| 121 | function applyProp(node: DOMElement, key: string, value: unknown): void { |
| 122 | if (key === 'children') return |
| 123 | |
| 124 | if (key === 'style') { |
| 125 | setStyle(node, value as Styles) |
| 126 | if (node.yogaNode) { |
| 127 | applyStyles(node.yogaNode, value as Styles) |
| 128 | } |
| 129 | return |
| 130 | } |
| 131 | |
| 132 | if (key === 'textStyles') { |
| 133 | node.textStyles = value as TextStyles |
| 134 | return |
| 135 | } |
| 136 | |
| 137 | if (EVENT_HANDLER_PROPS.has(key)) { |
| 138 | setEventHandler(node, key, value) |
| 139 | return |
| 140 | } |
| 141 | |
| 142 | setAttribute(node, key, value as DOMNodeAttribute) |
| 143 | } |
| 144 | |
| 145 | // -- |
| 146 |
no test coverage detected