(
text: string,
_root: DOMElement,
hostContext: HostContext,
)
| 358 | return node |
| 359 | }, |
| 360 | createTextInstance( |
| 361 | text: string, |
| 362 | _root: DOMElement, |
| 363 | hostContext: HostContext, |
| 364 | ): TextNode { |
| 365 | if (!hostContext.isInsideText) { |
| 366 | throw new Error( |
| 367 | `Text string "${text}" must be rendered inside <Text> component`, |
| 368 | ) |
| 369 | } |
| 370 | |
| 371 | return createTextNode(text) |
| 372 | }, |
| 373 | resetTextContent() {}, |
| 374 | hideTextInstance(node) { |
| 375 | setTextNodeValue(node, '') |
nothing calls this directly
no test coverage detected