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