Create a NativeRuntime.
NativeRuntime options.
Apply a head context.
A phone has no document, so most of a head has nowhere to go. The title does: it is the screen's title, which a navigator shows in its header.
The head context to apply.
Remember a value for the current event.
The web runtime uses this to carry state from a server render into hydration. There is no server here, so it is a per-event cache: asked twice for the same key during one navigation, the handler runs once.
The key to store the value under.
Produces the value when it is not already known.
The value.
StaticcurrentThe booted runtime, for code that runs outside the container: a screen, the native entry.
The runtime, once the application has booted.
StaticshareShare the booted runtime. Called by the provider that booted it, and by nothing else.
The runtime.
The runtime a component reaches for on a phone.
Registered under the same
reactRuntimealias the web runtime uses, so a service or a component that asks for the runtime gets the one belonging to the platform it is running on. Same three abilities, each meaning what it can mean natively: remember a value across a render, set the screen's title, and show an error page.