React Native implementation of the agnostic ViewEngine contract.
The web engine mounts into a DOM element; there is no element tree here, so the host is
the screen stack, which is exactly why the contract's host became generic. Mounting means
putting a screen on the stack, and the returned handle updates or pops that screen.
renderToString is the one part of the contract a phone cannot honour: there is no HTML
to produce and nobody to send it to. It refuses loudly rather than returning something
meaningless, so a misconfigured application (SSR asked of a native build) says so.
React Native implementation of the agnostic
ViewEnginecontract.The web engine mounts into a DOM element; there is no element tree here, so the host is the screen stack, which is exactly why the contract's host became generic. Mounting means putting a screen on the stack, and the returned handle updates or pops that screen.
renderToStringis the one part of the contract a phone cannot honour: there is no HTML to produce and nobody to send it to. It refuses loudly rather than returning something meaningless, so a misconfigured application (SSR asked of a native build) says so.